]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed NPE when disposing uninitialized SCL module editor 14/1214/1
authorJussi Koskela <jussi.koskela@semantum.fi>
Mon, 13 Nov 2017 07:51:08 +0000 (09:51 +0200)
committerJussi Koskela <jussi.koskela@semantum.fi>
Mon, 13 Nov 2017 07:51:08 +0000 (09:51 +0200)
refs #7612

Change-Id: I1dbd37b199034caa288a95012f2cbb9b4385c00c

bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLModuleEditor2.java

index 0e068d69bd3568387a8ba73fbbe1599d741e15a3..b7ab0f170ab92ae8c6572733c04a7d0c956e14d9 100644 (file)
@@ -121,7 +121,7 @@ public class SCLModuleEditor2 extends TextEditor {
         disposed = true;
         super.dispose();
         resourceManager.dispose();
-        matcher.dispose();
+        if (matcher != null) matcher.dispose();
     }
 
     public boolean isDisposed() {