Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Schindl2015-02-13 10:42:50 +0000
committerTom Schindl2015-02-13 10:42:50 +0000
commit88fe0ecf56ff52675247ba72f18cf1047e6f99c1 (patch)
tree8c93ad80e157aff8b36348ff7f41dc7803e9c8ea /experimental
parente54e1184ddb1492025c1c7bd17c4877e044df110 (diff)
downloadorg.eclipse.efxclipse-88fe0ecf56ff52675247ba72f18cf1047e6f99c1.tar.gz
org.eclipse.efxclipse-88fe0ecf56ff52675247ba72f18cf1047e6f99c1.tar.xz
org.eclipse.efxclipse-88fe0ecf56ff52675247ba72f18cf1047e6f99c1.zip
prevent from NPE when no annotation processor is available
Diffstat (limited to 'experimental')
-rw-r--r--experimental/compensator/org.eclipse.fx.text.ui/src/org/eclipse/jface/text/source/SourceViewer.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/experimental/compensator/org.eclipse.fx.text.ui/src/org/eclipse/jface/text/source/SourceViewer.java b/experimental/compensator/org.eclipse.fx.text.ui/src/org/eclipse/jface/text/source/SourceViewer.java
index 8dc8ed3e8..9bf91b7a8 100644
--- a/experimental/compensator/org.eclipse.fx.text.ui/src/org/eclipse/jface/text/source/SourceViewer.java
+++ b/experimental/compensator/org.eclipse.fx.text.ui/src/org/eclipse/jface/text/source/SourceViewer.java
@@ -98,8 +98,10 @@ public class SourceViewer extends TextViewer implements ISourceViewer, ISourceVi
});
}
- configuration.getAnnotationPresenters().stream().forEach(p -> p.getTypes().forEach( s -> presenterMap.put(s,p)));
-
+ if( configuration.getAnnotationPresenters() != null ) {
+ configuration.getAnnotationPresenters().stream().forEach(p -> p.getTypes().forEach( s -> presenterMap.put(s,p)));
+ }
+
// presenterMap.putAll(configuration.getAnnotationPresenters().stream().collect(Collectors.toMap(p -> p.getType(), p -> p)));
graphicsLoader = configuration.getGraphicsLoader();

Back to the top