Skip to content

Commit

Permalink
Fix for GUI REPL NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
mikera committed Mar 14, 2024
1 parent 59a2806 commit 14027f6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ protected void handleResult(Result r) {
}

protected void handleResult(ACell m) {
String resultString=RT.print(m,10000).toString();
AString s=RT.print(m);
String resultString=(s==null)?"Print limit exceeded!":s.toString();
int start=outputArea.getDocument().getLength();
addOutput(outputArea," => " + resultString + "\n");
int end=outputArea.getDocument().getLength();
Expand Down

0 comments on commit 14027f6

Please sign in to comment.