mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-28 13:36:06 +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;
|
return true;
|
||||||
}
|
}
|
||||||
|
this.showHelp(this, user);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -153,6 +153,9 @@ public class ChallengeLevel implements DataObject, Comparable<ChallengeLevel>
|
|||||||
*/
|
*/
|
||||||
public ItemStack getIcon()
|
public ItemStack getIcon()
|
||||||
{
|
{
|
||||||
|
if (icon == null) {
|
||||||
|
icon = new ItemStack(Material.PAPER);
|
||||||
|
}
|
||||||
return icon.clone();
|
return icon.clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user