Fixed /help causing NPE on Sponge

Affects issues:
- Fixed #1639
This commit is contained in:
Risto Lahtela 2020-11-05 20:21:20 +02:00
parent 7fb9691bf8
commit 12971b30ba

View File

@ -108,7 +108,7 @@ public class SpongeCommand implements CommandCallable {
@Override
public Optional<Text> getHelp(CommandSource source) {
return Optional.of(Text.of(command.getDescription()));
return Optional.ofNullable(command.getDescription()).map(Text::of);
}
@Override