Andreas Mülder преди 11 години
родител
ревизия
a74c8c2ef0
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      plugins/org.yakindu.sct.simulation.ui/src/org/yakindu/sct/simulation/ui/model/presenter/SCTSourceDisplay.java

+ 2 - 0
plugins/org.yakindu.sct.simulation.ui/src/org/yakindu/sct/simulation/ui/model/presenter/SCTSourceDisplay.java

@@ -62,6 +62,8 @@ public class SCTSourceDisplay implements ISourceDisplay {
 		if (notationHandler == null) {
 			notationHandler = new DefaultDynamicNotationHandler();
 			IHighlightingSupport support = (IHighlightingSupport) editor.getAdapter(IHighlightingSupport.class);
+			if (support == null)
+				return;
 			notationHandler.setHighlightingSupport(support);
 			handler.put(editor, notationHandler);
 		}