| commit | b8d1c11173a2f27bea83da7993940932ec05e7d9 | [log] [tgz] |
|---|---|---|
| author | Johan Compagner <jcompagner@gmail.com> | Fri Feb 28 16:22:52 2014 +0100 |
| committer | Johan Compagner <jcompagner@gmail.com> | Wed Mar 05 17:34:43 2014 +0100 |
| tree | 30032082fbf677ba36d6dd5926625d0700bb788d | |
| parent | 50f421d982efc196bc49b5557c9c88137d2c4302 [diff] |
null check
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/ti/TypeInferencerVisitor.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/ti/TypeInferencerVisitor.java index 9b50a69..953f126 100644 --- a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/ti/TypeInferencerVisitor.java +++ b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/ti/TypeInferencerVisitor.java
@@ -596,8 +596,10 @@ && RTypes.OBJECT.getDeclaration().equals( method.getDeclaringType()) && arguments.length > 0) { AnonymousValue value = new AnonymousValue(); - value.getValue().addValue( - ((IValueProvider) arguments[0]).getValue()); + IValue argumentValue = ((IValueProvider) arguments[0]) + .getValue(); + if (argumentValue != null) + value.getValue().addValue(argumentValue); if (arguments.length == 2) { JSTypeSet types = arguments[1].getTypes(); for (IRType type : types) {