Skip to content

Commit

Permalink
Adds protection around nulls.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Oct 19, 2024
1 parent 2843a8e commit 1b5f9c3
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 1b5f9c3

Please sign in to comment.