Debug java.io.File.list() is null error

This commit is contained in:
SNDST00M: M.U.N.I.N 2021-10-04 21:04:11 +01:00
parent 571b5b9ef4
commit 35ac2244c3
No known key found for this signature in database
GPG Key ID: 0C7CE6F01FC333C5

View File

@ -83,10 +83,10 @@ public class LiveAtlasMain extends JavaPlugin {
File destinationDirectory = dynmapWebFolderPath.toFile();
copyDirectory(sourceDirectory, destinationDirectory);
} catch (IOException e) {
throw new RuntimeException("Material Dynmap v" + version + " installation failed", e);
throw new RuntimeException("LiveAtlas v" + version + " installation failed", e);
}
info("Material Dynmap v" + version + " installation succeeded");
info("LiveAtlas v" + version + " installation succeeded");
}
public void onDisable() {
@ -105,6 +105,7 @@ public class LiveAtlasMain extends JavaPlugin {
if (sourceDirectory.getName() == "io" || sourceDirectory.getName() == "META-INF") {
return;
}
info(sourceDirectory.getName());
if (sourceDirectory.isDirectory()) {
copyDirectory(sourceDirectory, destinationDirectory);
} else {