Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
MobSlicer152 committed May 14, 2024
1 parent 7dc6d02 commit a107f37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<groupId>dev.randomcode.calculator</groupId>
<artifactId>calculator</artifactId>
<version>1.1.3-SNAPSHOT</version>
<version>1.1.4-SNAPSHOT</version>
<name>calculator</name>
<url>http://github.com/MobSlicer152/calculator</url>

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/dev/randomcode/calculator/AstPrinter.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private String parenthesize(String name, Expression... expressions) {

builder.append("(").append(name);
for (Expression expression : expressions) {
builder.append(" ").append(expression.accept(this));
builder.append(" ").append(expression != null ? expression.accept(this) : "(null)");
}
builder.append(")");

Expand Down

0 comments on commit a107f37

Please sign in to comment.