diff --git a/src/main/java/com/cyr1en/commandprompter/prompt/ContextProcessor.java b/src/main/java/com/cyr1en/commandprompter/prompt/ContextProcessor.java index 41c4fe2..a1a212e 100644 --- a/src/main/java/com/cyr1en/commandprompter/prompt/ContextProcessor.java +++ b/src/main/java/com/cyr1en/commandprompter/prompt/ContextProcessor.java @@ -45,7 +45,8 @@ protected void process(PromptContext context) { plugin.getMessenger().sendMessage(context.getSender(), plugin.getI18N().getFormattedProperty("PromptInProgress", plugin.getConfiguration().cancelKeyword())); - context.getCancellable().setCancelled(true); + if(context.getCancellable() != null) + context.getCancellable().setCancelled(true); return; }