We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76c7a0e commit 1eb4da3Copy full SHA for 1eb4da3
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/exception/PException.java
@@ -119,7 +119,7 @@ public int getStackTraceElementLimit() {
119
120
@Override
121
public boolean isSyntaxError() {
122
- return IsBuiltinClassProfile.profileClassSlowPath(getExceptionObject().getLazyPythonClass(), PythonBuiltinClassType.SyntaxError);
+ return pythonException != null && IsBuiltinClassProfile.profileClassSlowPath(pythonException.getLazyPythonClass(), PythonBuiltinClassType.SyntaxError);
123
}
124
125
public void setIncompleteSource(boolean val) {
0 commit comments