mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-02-16 12:31:59 +01:00
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
Block a user