Skip to content

Commit

Permalink
prevent NPE from 'server generates exception'
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 2, 2019
1 parent f00ccbf commit 560e7a7
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -298,7 +298,9 @@ public static void echoError(ScriptQueue source, Throwable ex) {
context.put("message", new ElementTag(thrown.getMessage()));
context.put("full_trace", new ElementTag(errorMessage));
context.put("type", new ElementTag(thrown.getClass().getSimpleName()));
context.put("queue", new QueueTag(source));
if (source != null) {
context.put("queue", new QueueTag(source));
}
ScriptEntry entry = (source != null ? source.getLastEntryExecuted() : null);
List<String> Determinations = OldEventManager.doEvents(Arrays.asList("server generates exception"),
entry == null ? new BukkitScriptEntryData(null, null) : entry.entryData, context);
Expand Down

0 comments on commit 560e7a7

Please sign in to comment.