Skip to content

Commit

Permalink
Adds protection around nulls. (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento authored Oct 24, 2024
1 parent 17dc22e commit 12f3933
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public boolean execute(User user, String label, List<String> args)

return true;
}
this.showHelp(this, user);
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ public String getFriendlyName()
*/
public ItemStack getIcon()
{
if (icon == null) {
icon = new ItemStack(Material.PAPER);
}
return icon.clone();
}

Expand Down

0 comments on commit 12f3933

Please sign in to comment.