nullcheck in setBlockForCellType in MinecleanerArena
This commit is contained in:
parent
42696fb612
commit
335b4cfab1
1 changed files with 1 additions and 0 deletions
|
|
@ -449,6 +449,7 @@ public class MinecleanerArena {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setBlockForCellType(int x, int y, Cell cell) {
|
private void setBlockForCellType(int x, int y, Cell cell) {
|
||||||
|
if(cell.getType() == null) return;
|
||||||
switch (cell.getType()) {
|
switch (cell.getType()) {
|
||||||
case Empty: {
|
case Empty: {
|
||||||
if (!cell.isRevealed() || !cell.isFlagged() || !cell.isExploded()) {
|
if (!cell.isRevealed() || !cell.isFlagged() || !cell.isExploded()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue