You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graalpython/com.oracle.graal.python/src/com/oracle/graal/python/compiler/RaisePythonExceptionErrorCallback.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,7 @@ public SourceSection getSourceSection() {
175
175
// Not very nice. This counts on the implementation in traceback.py where if the value of
176
176
// text attribute is NONE, then the line is not printed
177
177
Objecttext = PNone.NONE;
178
-
if (sourceRange.startLine <= source.getLineCount()) {
178
+
if (source.hasCharacters() && sourceRange.startLine <= source.getLineCount()) {
179
179
text = toTruffleStringUncached(source.getCharacters(sourceRange.startLine).toString());
0 commit comments