mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-02-11 19:50:38 +00:00
Fix NPE for null arg
This commit is contained in:
parent
e2c57cea52
commit
a43430b722
1 changed files with 1 additions and 1 deletions
|
@ -670,7 +670,7 @@ public enum C {
|
|||
Map<String, String> map = new LinkedHashMap<>();
|
||||
if (args.length > 0) {
|
||||
for (int i = args.length - 1; i >= 0; i--) {
|
||||
String arg = args[i].toString();
|
||||
String arg = "" + args[i];
|
||||
if (arg == null || arg.isEmpty()) {
|
||||
map.put("%s" + i, "");
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue