mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-24 11:36:53 +01:00
Adds protection around nulls. (#361)
This commit is contained in:
parent
17dc22ed66
commit
12f3933ce3
@ -63,6 +63,7 @@ public class ChallengesAdminCommand extends CompositeCommand
|
||||
|
||||
return true;
|
||||
}
|
||||
this.showHelp(this, user);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
@ -153,6 +153,9 @@ public class ChallengeLevel implements DataObject, Comparable<ChallengeLevel>
|
||||
*/
|
||||
public ItemStack getIcon()
|
||||
{
|
||||
if (icon == null) {
|
||||
icon = new ItemStack(Material.PAPER);
|
||||
}
|
||||
return icon.clone();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user