Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Rennie2007-01-24 15:26:05 +0000
committerMichael Rennie2007-01-24 15:26:05 +0000
commitd01c75f40faeb89fb61a0d88176fdba7656d77bf (patch)
treecc5dfd646240a64d6a850748e2629a3c47425eec /org.eclipse.ui.console
parentab1bda3897316226311142a78d4f71b3bbd2953c (diff)
downloadeclipse.platform.debug-d01c75f40faeb89fb61a0d88176fdba7656d77bf.tar.gz
eclipse.platform.debug-d01c75f40faeb89fb61a0d88176fdba7656d77bf.tar.xz
eclipse.platform.debug-d01c75f40faeb89fb61a0d88176fdba7656d77bf.zip
Bug 171201
NPE in TextConsoleViewer.handleDispose
Diffstat (limited to 'org.eclipse.ui.console')
-rw-r--r--org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsoleViewer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsoleViewer.java b/org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsoleViewer.java
index aa31ddee6..6a620efb7 100644
--- a/org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsoleViewer.java
+++ b/org.eclipse.ui.console/src/org/eclipse/ui/console/TextConsoleViewer.java
@@ -578,7 +578,6 @@ public class TextConsoleViewer extends SourceViewer implements LineStyleListener
* @see org.eclipse.jface.text.TextViewer#handleDispose()
*/
protected void handleDispose() {
- super.handleDispose();
IDocument document = getDocument();
if (document != null) {
document.removeDocumentListener(documentListener);
@@ -597,6 +596,8 @@ public class TextConsoleViewer extends SourceViewer implements LineStyleListener
ColorRegistry colorRegistry = JFaceResources.getColorRegistry();
colorRegistry.removeListener(propertyChangeListener);
+
+ super.handleDispose();
}
class HyperlinkColorChangeListener implements IPropertyChangeListener {

Back to the top