Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslapsha2006-07-30 08:43:19 -0400
committerslapsha2006-07-30 08:43:19 -0400
commit837542ebe422afc444cb09e7dafe57d3e1ce1915 (patch)
tree68309971bb48a9e0d3fc9825d3979ccb45d0d30d
parent82acea5183327d913a7f6b11da39dc235b6ff05b (diff)
downloadorg.eclipse.pdt-837542ebe422afc444cb09e7dafe57d3e1ce1915.tar.gz
org.eclipse.pdt-837542ebe422afc444cb09e7dafe57d3e1ce1915.tar.xz
org.eclipse.pdt-837542ebe422afc444cb09e7dafe57d3e1ce1915.zip
Fixed missing php.exe exception.PHP_IDE_0_2_2_20060731
-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