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:
parent
4b32ececa8
commit
9e1c7f92fd
1 changed files with 4 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue