1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-30 20:35:38 +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,7 +55,10 @@ public class ProblemPainter implements IPainter, PaintListener, IAnnotationModel
}
private boolean hasProblems() {
return !fProblemPositions.isEmpty();
if (fProblemPositions != null) {
return !fProblemPositions.isEmpty();
}
return false;
}
protected void enablePainting() {