Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Trimble2015-07-24 17:18:01 -0400
committerIan Trimble2015-07-24 17:18:01 -0400
commit18b53fd4ec4051602c2ccc5cbb1cd555ff763369 (patch)
tree58c05fb80336f2271edf4dd1a6ed735f79d89c75
parentcf6c8c662723e41069366243908787f6c22a1e68 (diff)
downloadwebtools.jsf-18b53fd4ec4051602c2ccc5cbb1cd555ff763369.tar.gz
webtools.jsf-18b53fd4ec4051602c2ccc5cbb1cd555ff763369.tar.xz
webtools.jsf-18b53fd4ec4051602c2ccc5cbb1cd555ff763369.zip
Bug 473313 - IllegalArgumentException in ListenerList.remove (155)
(Also removed an unused import for HTMLEditor.)
-rw-r--r--jsf/plugins/org.eclipse.jst.pagedesigner/META-INF/MANIFEST.MF2
-rw-r--r--jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/editors/HTMLEditor.java10
2 files changed, 7 insertions, 5 deletions
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner/META-INF/MANIFEST.MF b/jsf/plugins/org.eclipse.jst.pagedesigner/META-INF/MANIFEST.MF
index 03c69eb84..179a50b16 100644
--- a/jsf/plugins/org.eclipse.jst.pagedesigner/META-INF/MANIFEST.MF
+++ b/jsf/plugins/org.eclipse.jst.pagedesigner/META-INF/MANIFEST.MF
@@ -1,7 +1,7 @@
Manifest-Version: 1.0
Bundle-SymbolicName: org.eclipse.jst.pagedesigner;singleton:=true
Bundle-Name: %pluginName
-Bundle-Version: 1.7.0.qualifier
+Bundle-Version: 1.7.100.qualifier
Bundle-Activator: org.eclipse.jst.pagedesigner.PDPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
diff --git a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/editors/HTMLEditor.java b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/editors/HTMLEditor.java
index 23d05fcc2..260a3a200 100644
--- a/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/editors/HTMLEditor.java
+++ b/jsf/plugins/org.eclipse.jst.pagedesigner/src/org/eclipse/jst/pagedesigner/editors/HTMLEditor.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006 Sybase, Inc. and others.
+ * Copyright (c) 2006, 2015 Sybase, Inc. and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
@@ -539,9 +539,11 @@ public final class HTMLEditor extends MultiPageEditorPart implements
disconnectDesignPage();
IWorkbenchWindow window = getSite().getWorkbenchWindow();
- window.getPartService().removePartListener(_partListener);
- window.getShell().removeShellListener(_partListener);
- getSite().getPage().removePartListener(_partListener);
+ if (_partListener != null) {
+ window.getPartService().removePartListener(_partListener);
+ window.getShell().removeShellListener(_partListener);
+ getSite().getPage().removePartListener(_partListener);
+ }
if (_textEditor != null) {
_textEditor.removePropertyListener(this);

Back to the top