Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
Fixes #344
  • Loading branch information
valis committed Jul 30, 2024
1 parent 88101db commit d3d03dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/src/main/java/org/arend/core/expr/NewExpression.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Expression getImplementationHere(ClassField field) {

public Expression getImplementation(ClassField field) {
Expression impl = myClassCall.getImplementation(field, this);
return impl != null ? impl : FieldCallExpression.make(field, myRenewExpression);
return impl != null ? impl : myRenewExpression != null ? FieldCallExpression.make(field, myRenewExpression) : new ErrorExpression();
}

@Override
Expand Down

0 comments on commit d3d03dc

Please sign in to comment.