Skip to content

Commit

Permalink
null check
Browse files Browse the repository at this point in the history
  • Loading branch information
CyR1en committed Nov 5, 2023
1 parent 398b618 commit a5c3de5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a5c3de5

Please sign in to comment.