Bug 552475 - applyHighlights(): Guard against null annotation model

sourceViewer.getAnnotationModel() might return null, which could cause a
NPE when not guarded. Also set fOccurrenceAnnotations to null when no
current annotation model is present.

Change-Id: Id37edf61ddfb8bbfb329b4282386e30095400190
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
1 file changed