Add null check for files returned in world check; closes #278

This commit is contained in:
Tim Ekl 2011-11-29 20:14:11 -05:00
parent 5d2a1e478c
commit 8e74945b7e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}