1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-13 19:25:38 +02:00

Bug 355438 - [Memory Browser] SWT Exception (applied patch)

This commit is contained in:
John Cortell 2011-10-07 14:18:32 -05:00
parent 085f428acb
commit 8f1ac18b4e

View file

@ -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;
}