From 00a7b787f7ef8b85bfee18448fbe8e21c689b4b3 Mon Sep 17 00:00:00 2001 From: Jussi Koskela Date: Mon, 13 Nov 2017 09:51:08 +0200 Subject: [PATCH] Fixed NPE when disposing uninitialized SCL module editor refs #7612 Change-Id: I1dbd37b199034caa288a95012f2cbb9b4385c00c --- .../src/org/simantics/scl/ui/editor2/SCLModuleEditor2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLModuleEditor2.java b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLModuleEditor2.java index 0e068d69b..b7ab0f170 100644 --- a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLModuleEditor2.java +++ b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/editor2/SCLModuleEditor2.java @@ -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() { -- 2.47.1