diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/update/LauncherResponse.java b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/update/LauncherResponse.java index ef7bc7b1..c018d78f 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/update/LauncherResponse.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/socket/response/update/LauncherResponse.java @@ -60,7 +60,6 @@ private boolean checkSecure(String hash, String salt) { byte[] normal_hash = SecurityHelper.digest(SecurityHelper.DigestAlgorithm.SHA256, server.runtime.clientCheckSecret.concat(".").concat(salt)); byte[] launcher_hash = Base64.getDecoder().decode(hash); - //LogHelper.debug("[checkSecure] %s vs %s", Arrays.toString(normal_hash), Arrays.toString(launcher_hash)); return Arrays.equals(normal_hash, launcher_hash); } diff --git a/Launcher/src/main/java/pro/gravit/launcher/client/DirBridge.java b/Launcher/src/main/java/pro/gravit/launcher/client/DirBridge.java index df35a076..b5b9bcb0 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/client/DirBridge.java +++ b/Launcher/src/main/java/pro/gravit/launcher/client/DirBridge.java @@ -46,6 +46,13 @@ public class DirBridge { } public static void move(Path newDir) throws IOException { + if (newDir == null) { + LogHelper.debug("Invalid dir (null)"); + if (LogHelper.isDevEnabled()) + LogHelper.dev(LogHelper.toString(new Throwable("Check stack of call DirBridge with null path..."))); + return; + } + LogHelper.dev(newDir.toString()); IOHelper.move(dirUpdates, newDir); dirUpdates = newDir; }