Skip to content

Commit

Permalink
Fix NPE in narrate
Browse files Browse the repository at this point in the history
That's been annoying me.
  • Loading branch information
mcmonkey4eva committed Sep 3, 2013
1 parent 8630a4c commit e195a6d
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -83,6 +83,9 @@ public void execute(ScriptEntry scriptEntry) throws CommandExecutionException {
+ aH.debugObj("Targets", targets)
+ (format != null ? aH.debugObj("Format", format.getName()) : ""));

if (targets == null) {
return;
}
for (dPlayer player : targets) {
if (player != null && player.isOnline())
player.getPlayerEntity().sendMessage(format != null ? format.getFormattedText(scriptEntry) : text);
Expand Down

1 comment on commit e195a6d

@aufdemrand
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me too :)

Please sign in to comment.