mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
Fixed null pointer issue occurring on some houses when inspecting for packup.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user