Control-Flow Analysis: Fix NPE for array assignments without right-hand side

#EA-63602 Fixed
This commit is contained in:
Alexey Sedunov
2015-03-10 18:08:27 +03:00
parent 56031cb270
commit 11a4cdf7ec
6 changed files with 53 additions and 1 deletions
@@ -485,7 +485,9 @@ public class JetControlFlowProcessor {
if (setResolvedCall == null) {
generateArrayAccess(lhs, null);
List<PseudoValue> arguments = Arrays.asList(getBoundOrUnreachableValue(lhs), rhsDeferredValue.invoke());
List<PseudoValue> arguments = KotlinPackage.filterNotNull(
Arrays.asList(getBoundOrUnreachableValue(lhs), rhsDeferredValue.invoke())
);
builder.magic(parentExpression, parentExpression, arguments, defaultTypeMap(arguments), MagicKind.UNRESOLVED_CALL);
return;