diff --git a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/EnableBreakpointsAction.java b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/EnableBreakpointsAction.java index b3d9094eaf7..d1ed65ddeed 100644 --- a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/EnableBreakpointsAction.java +++ b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/EnableBreakpointsAction.java @@ -37,6 +37,7 @@ import org.eclipse.ui.IPartListener; import org.eclipse.ui.IViewActionDelegate; import org.eclipse.ui.IViewPart; +import org.eclipse.ui.IWorkbenchPage; import org.eclipse.ui.IWorkbenchPart; import org.eclipse.ui.IWorkbenchWindow; @@ -243,7 +244,11 @@ protected void asynchUpdate() { return; } Runnable r = () -> { - IWorkbenchWindow ww = getView().getViewSite().getPage().getWorkbenchWindow(); + IWorkbenchPage page = getView().getViewSite().getPage(); + if (page == null) { + return; + } + IWorkbenchWindow ww = page.getWorkbenchWindow(); if (ww == null) { return; }