aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek Pospychala2012-08-07 03:22:11 (EDT)
committerJacek Pospychala2012-08-07 03:22:11 (EDT)
commitaedb47852d4df21fa94b0d1de44662d80bea0e12 (patch)
treebba8f59d8f82df0f7e41289f4fc3f339d7bf215f
parentd0cc7dad7053200be6751aef887b0c0abdc6a4cd (diff)
downloadorg.eclipse.pdt-aedb47852d4df21fa94b0d1de44662d80bea0e12.zip
org.eclipse.pdt-aedb47852d4df21fa94b0d1de44662d80bea0e12.tar.gz
org.eclipse.pdt-aedb47852d4df21fa94b0d1de44662d80bea0e12.tar.bz2
Bug 386721 - NullPointerException in PHPLineTracker.dispose
-rw-r--r--plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/console/PHPLineTracker.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/console/PHPLineTracker.java b/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/console/PHPLineTracker.java
index 30fb084..ecdbf10 100644
--- a/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/console/PHPLineTracker.java
+++ b/plugins/org.eclipse.php.debug.ui/src/org/eclipse/php/internal/debug/ui/console/PHPLineTracker.java
@@ -73,8 +73,10 @@ public class PHPLineTracker implements IConsoleLineTrackerExtension {
*/
public void dispose() {
fConsole = null;
- fPHPHyperLink.dispose();
- fPHPHyperLink = null;
+ if (fPHPHyperLink != null) {
+ fPHPHyperLink.dispose();
+ fPHPHyperLink = null;
+ }
}
/*