1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-01-04 23:37:49 +01:00

Lets check for possible NPE

This commit is contained in:
Zrips 2019-09-19 13:34:40 +03:00
parent 6f4501ff05
commit cb67b23c94

View File

@ -140,7 +140,7 @@ public class editquests implements Cmd {
RawMessage rm = new RawMessage();
rm.add(Jobs.getLanguage().getMessage("command.editquests.help.list.objectiveAdd"),
"&eAdd new", "jobs editquests add " + job.getName() + " " + quest.getQuestName()
+ " " + o.getAction().getName());
+ " " + (o == null ? "Unknown" : o.getAction().getName()));
rm.show(sender);
Util.getQuestsEditorMap().remove(player.getUniqueId());