Skip to content
Snippets Groups Projects
Commit e50a12e1 authored by Florian Angerer's avatar Florian Angerer
Browse files

Inserted null check for evaluated argument.

parent 5820667e
No related branches found
No related tags found
No related merge requests found
......@@ -529,6 +529,10 @@ public abstract class PromiseNode extends RNode {
size++;
evaluatedArgs[i] = promiseCheckHelper.checkEvaluate(frame, argValue);
}
if (evaluatedArgs[i] == null) {
CompilerDirectives.transferToInterpreterAndInvalidate();
throw RInternalError.shouldNotReachHere("evaluated argument must not be null");
}
}
if (containsVarargProfile.profile(containsVarargs)) {
return size;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment