Add null check for files returned in world check; closes #278
This commit is contained in:
parent
5d2a1e478c
commit
8e74945b7e
|
@ -55,7 +55,7 @@ public class ImportCommand extends MultiverseCommand {
|
|||
return name.equalsIgnoreCase("level.dat");
|
||||
}
|
||||
});
|
||||
if (files.length > 0) {
|
||||
if (files != null && files.length > 0) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue