From d9d24d9073cb80188f76bba72aa7c8badfd3d5c3 Mon Sep 17 00:00:00 2001 From: brenoepic <59066707+brenoepics@users.noreply.github.com> Date: Fri, 15 Apr 2022 15:41:32 -0300 Subject: [PATCH] add null check --- .../incoming/floorplaneditor/FloorPlanEditorSaveEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/messages/incoming/floorplaneditor/FloorPlanEditorSaveEvent.java b/src/main/java/com/eu/habbo/messages/incoming/floorplaneditor/FloorPlanEditorSaveEvent.java index 1ba9edd7..b4d98206 100644 --- a/src/main/java/com/eu/habbo/messages/incoming/floorplaneditor/FloorPlanEditorSaveEvent.java +++ b/src/main/java/com/eu/habbo/messages/incoming/floorplaneditor/FloorPlanEditorSaveEvent.java @@ -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; }