Skip to content

Commit

Permalink
Fixed a NPE when tab-completing admin commands (#1566)
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Jan 27, 2023
1 parent 479cc27 commit cba21ee
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -49,7 +49,7 @@ default List<String> tabComplete(SuperiorSkyblockPlugin plugin, CommandSender se
}
}

return Collections.unmodifiableList(tabVariables);
return tabVariables == null ? Collections.emptyList() : Collections.unmodifiableList(tabVariables);
}

boolean supportMultipleIslands();
Expand Down

0 comments on commit cba21ee

Please sign in to comment.