Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/debug/ui/launching/PHPExecutableLaunchTab.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/debug/ui/launching/PHPExecutableLaunchTab.java b/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/debug/ui/launching/PHPExecutableLaunchTab.java
index f41cdf44b..2d52fb555 100644
--- a/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/debug/ui/launching/PHPExecutableLaunchTab.java
+++ b/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/debug/ui/launching/PHPExecutableLaunchTab.java
@@ -434,7 +434,9 @@ public class PHPExecutableLaunchTab extends AbstractLaunchConfigurationTab {
if (location.equals("")) {
final PHPexes phpExes = new PHPexes();
phpExes.load(PHPDebugUIPlugin.getDefault().getPluginPreferences());
- location = phpExes.getDefaultItem().getPhpEXE().toString();
+ PHPexeItem phpExeItem = phpExes.getDefaultItem();
+ if(phpExeItem == null) return;
+ location = phpExeItem.getPhpEXE().toString();
configuration.setAttribute(PHPCoreConstants.ATTR_LOCATION, location);
configuration.setAttribute(IDebugParametersKeys.OVERRIDE_FIRST_LINE_BREAKPOINT, false);
}

Back to the top