mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Fix another NPE in schematics.
This commit is contained in:
parent
2734dc377c
commit
03d7cd394a
@ -263,7 +263,7 @@ public void list(Actor actor, CommandContext args, @Switch('p') @Optional("1") i
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user