Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed NPE when trying to launch script in debug mode for the first time

while another workbench window without any active page (no perspective
opened) is present
  • Loading branch information...
commit 3e754b16d90d82cc332062305fb2e1930ad0feb5 1 parent 273ac0e
jploski authored
View
2  org.epic.debug/src/org/epic/debug/ui/action/VariablesViewActionDelegate.java
@@ -41,7 +41,7 @@ public synchronized static void enableVariablesViewActions()
for (int i = 0; i < window.length; i++)
{
IWorkbenchPage page = window[i].getActivePage();
- final IViewPart variablesView = page.findView("org.eclipse.debug.ui.VariableView");
+ final IViewPart variablesView = page != null ? page.findView("org.eclipse.debug.ui.VariableView") : null;
if (variablesView != null) Display.getDefault().asyncExec(
new EnableVariablesViewActions(variablesView));
}
Please sign in to comment.
Something went wrong with that request. Please try again.