I see a lot of questions on SO where the user has an exception and asks how to solve it. Most of the time someone will point out the problem and quite often the root cause is a simple programming mistake.
For example, there are hundreds of questions where the OP asks how to solve a Java NullPointerException (currently 580 posts tagged with this and much more that have it only in the title). Eventhough the specific situation is always different, the solution usually is more or less the same (to first initialise this or that variable). It seems to me that these kind of questions are hardly relevant for future users. Not only do we get a lot of (more or less) duplicate questions, at the same time the solution is usually very specific to the code and not directly usable for others.
So, should we flag/vote-to-close questions on these types of simple programming mistakes that have been asked over and over?
And if we flag them, what should be the reason? "Doesn't belong here", "Exact Duplicate" (even if it isn't an exact duplicate)?
The general opinion seems to be to at least answer the question. Possibly the only exception to this are errors that are so blatantly obvious, like missing a semicolon for example. Whether or not the question should be closed as "Too localized" after it has been answered is still a point of discussion. If we close these questions, then it will reduce the clutter on the site, but closing discourages people to improve the given answers.