Skip to content

Commit

Permalink
fixed the null piece error
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron committed Apr 29, 2016
1 parent a78217c commit c88621f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/view/Square.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ public void setPiece(Checker piece) {
}

public void removePiece() {

this.remove(this.piece);
if (null != this.piece) {
this.remove(this.piece);
}
}


Expand Down

0 comments on commit c88621f

Please sign in to comment.