mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 15:00:52 +01:00
add null check
This commit is contained in:
parent
9e1e90f4f1
commit
d9d24d9073
@ -121,7 +121,7 @@ public class FloorPlanEditorSaveEvent extends MessageHandler {
|
||||
}
|
||||
}
|
||||
|
||||
if (tile.state != RoomTileState.INVALID && height != tile.z && room.getTopItemAt(x, y) != null) {
|
||||
if (tile != null && tile.state != RoomTileState.INVALID && height != tile.z && room.getTopItemAt(x, y) != null) {
|
||||
errors.add("${notification.floorplan_editor.error.message.change_blocked_by_room_item}");
|
||||
break blockingRoomItemScan;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user