Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqiwang2011-03-03 02:26:12 +0000
committerqiwang2011-03-03 02:26:12 +0000
commit977f2abda3977293879cb8173178b4a80f67da5d (patch)
tree6f713ed5909b4a2179d7b58f9c9d5ed2f684fcc3
parent438fb31a78d581ab5c4801e7bd3506c07abec8f1 (diff)
downloadorg.eclipse.pdt-977f2abda3977293879cb8173178b4a80f67da5d.tar.gz
org.eclipse.pdt-977f2abda3977293879cb8173178b4a80f67da5d.tar.xz
org.eclipse.pdt-977f2abda3977293879cb8173178b4a80f67da5d.zip
When obtain the IScriptProject handle, need check if isOpen before accessing it.v20110317-1544
The DLTKCore.create method is a handle only mehtod.
-rw-r--r--plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/pathmapper/DebugSearchEngine.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/pathmapper/DebugSearchEngine.java b/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/pathmapper/DebugSearchEngine.java
index 9d18850d8..6a0a77fef 100644
--- a/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/pathmapper/DebugSearchEngine.java
+++ b/plugins/org.eclipse.php.debug.core/src/org/eclipse/php/internal/debug/core/pathmapper/DebugSearchEngine.java
@@ -205,7 +205,7 @@ public class DebugSearchEngine {
// get build paths of all projects
IScriptProject scriptProject = DLTKCore.create(project);
- if (scriptProject != null) {
+ if (scriptProject != null && scriptProject.isOpen()) {
try {
IBuildpathEntry[] rawBuildpath = scriptProject
.getRawBuildpath();

Back to the top