From 4f2d54b84459a90cde1235943a7b481993f0dc61 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sat, 16 Jan 2021 01:18:31 +1300 Subject: [PATCH] Fix a null error --- .../libraryaddict/disguise/utilities/DisguiseUtilities.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java index db7fc510..d9897544 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseUtilities.java @@ -420,6 +420,10 @@ public class DisguiseUtilities { dest = new File(Bukkit.getUpdateFolderFile(), theirFile.getName()); } + if (!dest.exists()) { + dest.createNewFile(); + } + // We're connecting to jenkins's API for ProtocolLib URL url = new URL("https://ci.dmulloy2.net/job/ProtocolLib/lastSuccessfulBuild/artifact/target/ProtocolLib.jar"); // Creating a connection