Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Cortell2011-10-07 19:18:32 +0000
committerJohn Cortell2011-10-07 19:19:12 +0000
commit8f1ac18b4e5bf7270a58516596b93f412483aff8 (patch)
treeb3849bf8ef2ec824a568f3afa613a39926804517
parent085f428acbf69d30af1dabe562a83e07ea807419 (diff)
downloadorg.eclipse.cdt-8f1ac18b4e5bf7270a58516596b93f412483aff8.tar.gz
org.eclipse.cdt-8f1ac18b4e5bf7270a58516596b93f412483aff8.tar.xz
org.eclipse.cdt-8f1ac18b4e5bf7270a58516596b93f412483aff8.zip
Bug 355438 - [Memory Browser] SWT Exception (applied patch)
-rw-r--r--memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java b/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java
index 01224bd3b45..850e0d5f23f 100644
--- a/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java
+++ b/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java
@@ -444,8 +444,12 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IM
private void handleUnsupportedSelection() {
fStackLayout.topControl = fUnsupportedLabel;
- fGotoAddressBarControl.setVisible(false);
- fGotoMemorySpaceControl.setVisible(false);
+ if(!fGotoAddressBarControl.isDisposed()) {
+ fGotoAddressBarControl.setVisible(false);
+ }
+ if(!fGotoMemorySpaceControl.isDisposed()) {
+ fGotoMemorySpaceControl.setVisible(false);
+ }
}
private void performGo(boolean inNewTab) {
@@ -932,7 +936,7 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IM
// GUI activity must be on the main thread
runOnUIThread(new Runnable(){
public void run() {
- if (fGotoAddressBarControl.isDisposed()) {
+ if (fGotoAddressBarControl.isDisposed() || fGotoMemorySpaceControl.isDisposed()) {
return;
}

Back to the top