Skip to content

Commit

Permalink
fix error in expecting proof script if there is none
Browse files Browse the repository at this point in the history
  • Loading branch information
wadoon committed Nov 5, 2024
1 parent c9b9d2e commit bfdd8b1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -679,12 +679,14 @@ public boolean hasProofScript() {
}

public @Nullable ProofScriptEntry readProofScript() throws ProofInputException {
assert envInput instanceof KeYUserProblemFile;
KeYUserProblemFile kupf = (KeYUserProblemFile) envInput;
return kupf.readProofScript();
}

public @Nullable ProofScriptEntry getProofScript() throws ProblemLoaderException {
if (!hasProofScript()) {
return null;
}
try {
return readProofScript();
} catch (ProofInputException e) {
Expand Down

0 comments on commit bfdd8b1

Please sign in to comment.