From 35ac2244c31d2d85b22a1982bf746b6ac98389b4 Mon Sep 17 00:00:00 2001 From: "SNDST00M: M.U.N.I.N" <82655227+SNDST00M@users.noreply.github.com> Date: Mon, 4 Oct 2021 21:04:11 +0100 Subject: [PATCH] Debug `java.io.File.list() is null` error --- java/src/main/java/io/github/jlyne/LiveAtlasMain.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java/src/main/java/io/github/jlyne/LiveAtlasMain.java b/java/src/main/java/io/github/jlyne/LiveAtlasMain.java index 9e5c8e4..d61f761 100644 --- a/java/src/main/java/io/github/jlyne/LiveAtlasMain.java +++ b/java/src/main/java/io/github/jlyne/LiveAtlasMain.java @@ -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 {