From fdc038e9bdfee495ea6ceb637ebf7586aede0b42 Mon Sep 17 00:00:00 2001 From: Cekis Date: Tue, 24 Jan 2017 19:17:45 +0000 Subject: [PATCH] Fixed null pointer issue occurring on some houses when inspecting for packup. --- .../compiled/game/script/library/player_structure.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sku.0/sys.server/compiled/game/script/library/player_structure.java b/sku.0/sys.server/compiled/game/script/library/player_structure.java index 4f5013bea..78931d4c0 100755 --- a/sku.0/sys.server/compiled/game/script/library/player_structure.java +++ b/sku.0/sys.server/compiled/game/script/library/player_structure.java @@ -2649,6 +2649,10 @@ public class player_structure extends script.base_script return; } String signText = getName(signId); + if(signText == null){ + LOG("playerStructure", "WARNING: Structure (" + structure + ") at location [" + getLocation(structure).toString() + "] has a sign (" + signId + "), but the sign name could not be retrieved."); + return; + } int indexOfAbandonedText = signText.indexOf(player_structure.CITY_ABANDONED_TEXT); if (indexOfAbandonedText > -1) {