mirror of
https://bitbucket.org/theswgsource/dsrc-1.2.git
synced 2026-01-17 00:04:38 -05:00
fix for null pointer exception trick_or_treater.java
This commit is contained in:
@@ -121,7 +121,7 @@ public class trick_or_treater extends script.base_script
|
||||
return SCRIPT_CONTINUE;
|
||||
}
|
||||
String targetName = getCreatureName(target);
|
||||
if (targetName.equals("halloween_vendor"))
|
||||
if (targetName != null && targetName.equals("halloween_vendor"))
|
||||
{
|
||||
sendSystemMessage(self, event_perk.ZOZ);
|
||||
return SCRIPT_CONTINUE;
|
||||
|
||||
Reference in New Issue
Block a user