Skip to content

Commit 30e60f0

Browse files
committed
Fix: add missing fallback case to 'CheckFunctionResultNode'.
1 parent 63ad40d commit 30e60f0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/TruffleCextBuiltins.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,13 @@ Object doForeign(String name, TruffleObject result,
551551
return result;
552552
}
553553

554+
@Fallback
555+
Object doGeneric(String name, Object result) {
556+
assert result != null;
557+
checkFunctionResult(name, false);
558+
return result;
559+
}
560+
554561
private void checkFunctionResult(String name, boolean isNull) {
555562
PythonContext context = getContext();
556563
PException currentException = context.getCurrentException();

0 commit comments

Comments
 (0)