Skip to content

Commit

Permalink
Fixed a bug where file wouldn't save due to batch grader updates
Browse files Browse the repository at this point in the history
  • Loading branch information
charlestian23 committed Sep 29, 2023
1 parent 299188e commit a52b931
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/edu/rpi/legup/model/Puzzle.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ public boolean isValidTextInput(String[] statements) {
* @return true if the board was solved correctly, false otherwise
*/
public boolean isPuzzleComplete() {
if (tree == null)
return false;

boolean isComplete = tree.isValid();
if (isComplete) {
for (TreeElement leaf : tree.getLeafTreeElements()) {
Expand Down

0 comments on commit a52b931

Please sign in to comment.