Fix another NPE in schematics.

This commit is contained in:
Wizjany 2016-05-18 12:44:22 -04:00
parent 2734dc377c
commit 03d7cd394a

View File

@ -263,7 +263,7 @@ public class SchematicCommands {
File dir = worldEdit.getWorkingDirectoryFile(worldEdit.getConfiguration().saveDir);
List<File> fileList = allFiles(dir);
if (fileList.isEmpty()) {
if (fileList == null || fileList.isEmpty()) {
actor.printError("No schematics found.");
return;
}