Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Bricon2020-02-03 17:10:37 +0000
committerFred Bricon2020-02-03 17:10:37 +0000
commit6cdb7f059c8a4c4dcd33d672993e0bd8aa8e6379 (patch)
tree4aab7678df9009d9b6d0e3ccce0a59f1d91adfbf /org.eclipse.m2e.editor
parent48eda3d34c982cf3dd0d77f4d214f4f7b686bdd9 (diff)
downloadm2e-core-6cdb7f059c8a4c4dcd33d672993e0bd8aa8e6379.tar.gz
m2e-core-6cdb7f059c8a4c4dcd33d672993e0bd8aa8e6379.tar.xz
m2e-core-6cdb7f059c8a4c4dcd33d672993e0bd8aa8e6379.zip
Fix NPE in DependencyTreePage.dispose()
Change-Id: If99d414049f66fbb5c2bb4d0e10eb37710b43f74 Signed-off-by: Fred Bricon <fbricon@gmail.com>
Diffstat (limited to 'org.eclipse.m2e.editor')
-rw-r--r--org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java
index 97ec7a1b..d471855a 100644
--- a/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java
+++ b/org.eclipse.m2e.editor/src/org/eclipse/m2e/editor/pom/DependencyTreePage.java
@@ -1025,7 +1025,9 @@ public class DependencyTreePage extends FormPage implements IMavenProjectChanged
@Override
public void dispose() {
MavenPluginActivator.getDefault().getMavenProjectManager().removeMavenProjectChangedListener(this);
- highlighter.dispose();
+ if(highlighter != null) {
+ highlighter.dispose();
+ }
super.dispose();
}

Back to the top