Skip to content

Commit 508558d

Browse files
EcljpseB0Tjukzi
authored andcommitted
EnableBreakpointsAction.asynchUpdate: fix NPE #874
#874
1 parent cb993ac commit 508558d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/EnableBreakpointsAction.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
import org.eclipse.ui.IPartListener;
3838
import org.eclipse.ui.IViewActionDelegate;
3939
import org.eclipse.ui.IViewPart;
40+
import org.eclipse.ui.IWorkbenchPage;
4041
import org.eclipse.ui.IWorkbenchPart;
4142
import org.eclipse.ui.IWorkbenchWindow;
4243

@@ -243,7 +244,11 @@ protected void asynchUpdate() {
243244
return;
244245
}
245246
Runnable r = () -> {
246-
IWorkbenchWindow ww = getView().getViewSite().getPage().getWorkbenchWindow();
247+
IWorkbenchPage page = getView().getViewSite().getPage();
248+
if (page == null) {
249+
return;
250+
}
251+
IWorkbenchWindow ww = page.getWorkbenchWindow();
247252
if (ww == null) {
248253
return;
249254
}

0 commit comments

Comments
 (0)