Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2001-09-05 12:27:46 +0000
committerDarin Swanson2001-09-05 12:27:46 +0000
commitdf20f9fe11984d68610fcc66bc39ec282946a27d (patch)
tree8f7230086432f7f4f232069f08513897c7b40991
parent2fb0ad57fce265775ac0e2090cb53ca45b16b7cc (diff)
downloadeclipse.platform.debug-df20f9fe11984d68610fcc66bc39ec282946a27d.tar.gz
eclipse.platform.debug-df20f9fe11984d68610fcc66bc39ec282946a27d.tar.xz
eclipse.platform.debug-df20f9fe11984d68610fcc66bc39ec282946a27d.zip
1GJ6TZF: ITPDUI:ALL - NPE in BreakpointsView shutting down WB
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BreakpointsView.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BreakpointsView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BreakpointsView.java
index ba608edac..991527358 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BreakpointsView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/BreakpointsView.java
@@ -103,8 +103,14 @@ public class BreakpointsView extends AbstractDebugView implements IDoubleClickLi
* Cleans up the actions when this part is disposed
*/
protected void cleanupActions() {
+ if (fBreakpointListenerActions == null) {
+ return;
+ }
+ DebugPlugin dp= DebugPlugin.getDefault();
+ IBreakpointManager bm= dp.getBreakpointManager();
+
for (int i=0; i < fBreakpointListenerActions.size(); i++) {
- DebugPlugin.getDefault().getBreakpointManager().removeBreakpointListener((IBreakpointListener)fBreakpointListenerActions.get(i));
+ bm.removeBreakpointListener((IBreakpointListener)fBreakpointListenerActions.get(i));
}
}

Back to the top