aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2013-03-18 21:13:07 (EDT)
committerzzhongwei2013-03-18 21:13:07 (EDT)
commit59d740c176083faf50dca58605c81ead941f2ee2 (patch)
tree6cbd4696b59c05390b481d806d86479b4f074872
parent19ff25664fd926c6afc5ae812a5d0814666e202c (diff)
downloadorg.eclipse.pdt-59d740c176083faf50dca58605c81ead941f2ee2.zip
org.eclipse.pdt-59d740c176083faf50dca58605c81ead941f2ee2.tar.gz
org.eclipse.pdt-59d740c176083faf50dca58605c81ead941f2ee2.tar.bz2
fix NPE
-rw-r--r--plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java
index 1bf4552..4c3a6db 100644
--- a/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java
+++ b/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/typeinference/PHPModelUtils.java
@@ -349,6 +349,9 @@ public class PHPModelUtils {
int elementType = 0;
String elementName = null;
for (T element : elements) {
+ if (element == null) {
+ continue;
+ }
if (elementName == null) {
elementType = element.getElementType();
elementName = element.getElementName();