Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvrubezhny2013-12-26 13:08:03 +0000
committervrubezhny2013-12-26 13:14:14 +0000
commitf72447a7f8edc4b638c843026fed6b03deb39128 (patch)
tree4d68d427920432f622b378da4684ac073b9b6caf
parent559d382bf4ecdf68f53d9bd392dd1c3b1cab885a (diff)
downloadwebtools.jsdt.core-f72447a7f8edc4b638c843026fed6b03deb39128.tar.gz
webtools.jsdt.core-f72447a7f8edc4b638c843026fed6b03deb39128.tar.xz
webtools.jsdt.core-f72447a7f8edc4b638c843026fed6b03deb39128.zip
NullPointerException in ScopeAnalyzer.getUsedVariableNames()
The method ScopeAnalyzer.getDeclarationsAfter(int, int) should never return null, so it's made to return empty array instead of null. Signed-off-by: vrubezhny <vrubezhny@exadel.com>
-rw-r--r--bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/dom/ScopeAnalyzer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/dom/ScopeAnalyzer.java b/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/dom/ScopeAnalyzer.java
index 0b184036..d32217d7 100644
--- a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/dom/ScopeAnalyzer.java
+++ b/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/dom/ScopeAnalyzer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2009 IBM Corporation and others.
+ * Copyright (c) 2000, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -564,7 +564,7 @@ public class ScopeAnalyzer {
fRoot.accept(finder);
ASTNode node= finder.getCoveringNode();
if (node == null) {
- return null;
+ return NO_BINDING;
}
ASTNode declaration= ASTResolving.findParentStatement(node);

Back to the top