Skip to content

Commit 1037fee

Browse files
committed
handle null prefix in CExtCommonNodes.fatalError()
1 parent 7fa11c7 commit 1037fee

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/common

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/common/CExtCommonNodes.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
public abstract class CExtCommonNodes {
132132
@TruffleBoundary
133133
public static void fatalError(Node location, PythonContext context, TruffleString prefix, TruffleString msg, int status) {
134-
fatalError(location, context, prefix.toJavaStringUncached(), msg.toJavaStringUncached(), status);
134+
fatalError(location, context, prefix != null ? prefix.toJavaStringUncached() : null, msg.toJavaStringUncached(), status);
135135
}
136136

137137
@TruffleBoundary

0 commit comments

Comments
 (0)