Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-10-18 09:00:04 -0400
committerUwe Stieber2013-10-18 09:00:04 -0400
commit7d5a7335d7b2f78a194b4de968c7b9dff4fcb676 (patch)
treed483a7e52e888394143a67e2f1db0546b5bb5db1 /target_explorer
parentefa8fae8efd9d8de87f35295adda059023af37e6 (diff)
downloadorg.eclipse.tcf-7d5a7335d7b2f78a194b4de968c7b9dff4fcb676.tar.gz
org.eclipse.tcf-7d5a7335d7b2f78a194b4de968c7b9dff4fcb676.tar.xz
org.eclipse.tcf-7d5a7335d7b2f78a194b4de968c7b9dff4fcb676.zip
Terminals: Fix widget disposed error if the terminal gets closed right after it got opened
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/services/TerminalService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/services/TerminalService.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/services/TerminalService.java
index 96cdb7230..fe02c793f 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/services/TerminalService.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals/src/org/eclipse/tcf/te/ui/terminals/services/TerminalService.java
@@ -185,7 +185,7 @@ public class TerminalService extends AbstractService implements ITerminalService
CTabItem item = ConsoleManager.getInstance().openConsole(id, secondaryId, title, encoding, connector, data, true, forceNew);
// Associate the original terminal properties with the tab item.
// This makes it easier to persist the connection data within the memento handler
- if (item != null) item.setData("properties", properties); //$NON-NLS-1$
+ if (item != null && !item.isDisposed()) item.setData("properties", properties); //$NON-NLS-1$
// Invoke the callback
if (callback != null) callback.done(this, Status.OK_STATUS);
}

Back to the top