Pārlūkot izejas kodu

added null check for tear down

andreas muelder 7 gadi atpakaļ
vecāks
revīzija
139b448222

+ 1 - 1
plugins/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/editor/StatechartDiagramEditor.java

@@ -438,7 +438,7 @@ public class StatechartDiagramEditor extends DiagramPartitioningEditor implement
 
 	@Override
 	public boolean isDirty() {
-		if (!(getContextObject() instanceof SpecificationElement))
+		if (getDiagram() == null || !(getContextObject() instanceof SpecificationElement))
 			return super.isDirty();
 		SpecificationElement contextObject = (SpecificationElement) getContextObject();
 		return super.isDirty() || (definitionSection.getDefinition() != null