1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-02 13:55:39 +02:00

Check for Nullpointer.

This commit is contained in:
Alain Magloire 2002-11-13 18:50:31 +00:00
parent 4b32ececa8
commit 9e1c7f92fd

View file

@ -55,8 +55,11 @@ public class ProblemPainter implements IPainter, PaintListener, IAnnotationModel
} }
private boolean hasProblems() { private boolean hasProblems() {
if (fProblemPositions != null) {
return !fProblemPositions.isEmpty(); return !fProblemPositions.isEmpty();
} }
return false;
}
protected void enablePainting() { protected void enablePainting() {
if (!fIsPainting && hasProblems()) { if (!fIsPainting && hasProblems()) {