From 7fb9691bf860708d681aaa0f32a5483bfec6c2ec Mon Sep 17 00:00:00 2001 From: Risto Lahtela <24460436+Rsl1122@users.noreply.github.com> Date: Thu, 5 Nov 2020 20:20:43 +0200 Subject: [PATCH] Fixed /help causing NPE on Sponge Affects issues: - Fixed #1639 --- .../java/com/djrapitops/plan/commands/use/SpongeCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plan/sponge/src/main/java/com/djrapitops/plan/commands/use/SpongeCommand.java b/Plan/sponge/src/main/java/com/djrapitops/plan/commands/use/SpongeCommand.java index d0010649a..01b169be0 100644 --- a/Plan/sponge/src/main/java/com/djrapitops/plan/commands/use/SpongeCommand.java +++ b/Plan/sponge/src/main/java/com/djrapitops/plan/commands/use/SpongeCommand.java @@ -103,7 +103,7 @@ public class SpongeCommand implements CommandCallable { @Override public Optional getShortDescription(CommandSource source) { - return Optional.of(Text.of(command.getDescription())); + return Optional.ofNullable(command.getDescription()).map(Text::of); } @Override