aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2013-03-11 03:47:39 (EDT)
committerzzhongwei2013-03-11 03:47:39 (EDT)
commita0eb1033eefa1d6285d7bb2d238f1acd9eea4128 (patch)
tree03378838cb53a588410035a88a1d6e38dffab404
parentd25046f1e6d57e90b83cd083181cae8b1e9fb26a (diff)
downloadorg.eclipse.pdt-a0eb1033eefa1d6285d7bb2d238f1acd9eea4128.zip
org.eclipse.pdt-a0eb1033eefa1d6285d7bb2d238f1acd9eea4128.tar.gz
org.eclipse.pdt-a0eb1033eefa1d6285d7bb2d238f1acd9eea4128.tar.bz2
402223: NPE when Preferences/PHP/Debug/Server changed
https://bugs.eclipse.org/bugs/show_bug.cgi?id=402223
-rw-r--r--plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/preferences/PHPDebugPreferencesBlock.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/preferences/PHPDebugPreferencesBlock.java b/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/preferences/PHPDebugPreferencesBlock.java
index 493a951..7d0aa00 100644
--- a/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/preferences/PHPDebugPreferencesBlock.java
+++ b/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/preferences/PHPDebugPreferencesBlock.java
@@ -734,6 +734,9 @@ public class PHPDebugPreferencesBlock extends AbstractPHPPreferencePageBlock {
private void refreshAutoGeneratedBaseURLDisplay()
throws MalformedURLException {
+ if (!isPropertyPage) {
+ return;
+ }
IPath path = new Path(fDefaultBasePath.getText());
defaultBasePath = fDefaultBasePath.getText();