Bladeren bron

added NullCheck for elements

bohl 10 jaren geleden
bovenliggende
commit
75375c9556

+ 4 - 0
plugins/org.yakindu.sct.simulation.ui/src/org/yakindu/sct/simulation/ui/view/decorator/SimulationImageRenderer.java

@@ -130,6 +130,10 @@ public class SimulationImageRenderer {
 								element = ((Edge) next).getElement();
 							}
 
+							if(element == null){ //next instanceof BasicDecorationNode || next instanceof Shape
+								continue;
+							}
+							
 							if (EcoreUtil.getURI(elementToHighlight).equals(EcoreUtil.getURI(element))) {
 								if (next instanceof Node) {
 									ShapeStyle style = (ShapeStyle) ((Node) next)