mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-08 01:08:23 +01:00
Lets check for possible NPE
This commit is contained in:
parent
6f4501ff05
commit
cb67b23c94
@ -140,7 +140,7 @@ public class editquests implements Cmd {
|
|||||||
RawMessage rm = new RawMessage();
|
RawMessage rm = new RawMessage();
|
||||||
rm.add(Jobs.getLanguage().getMessage("command.editquests.help.list.objectiveAdd"),
|
rm.add(Jobs.getLanguage().getMessage("command.editquests.help.list.objectiveAdd"),
|
||||||
"&eAdd new", "jobs editquests add " + job.getName() + " " + quest.getQuestName()
|
"&eAdd new", "jobs editquests add " + job.getName() + " " + quest.getQuestName()
|
||||||
+ " " + o.getAction().getName());
|
+ " " + (o == null ? "Unknown" : o.getAction().getName()));
|
||||||
rm.show(sender);
|
rm.show(sender);
|
||||||
|
|
||||||
Util.getQuestsEditorMap().remove(player.getUniqueId());
|
Util.getQuestsEditorMap().remove(player.getUniqueId());
|
||||||
|
Loading…
Reference in New Issue
Block a user