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