From 002754f3af84b67d444beb8caa8067cb33853dd7 Mon Sep 17 00:00:00 2001 From: Alex <40795980+AlexProgrammerDE@users.noreply.github.com> Date: Thu, 4 Jul 2024 22:08:45 +0200 Subject: [PATCH] Fix proxy null check (#836) --- .../java/org/geysermc/mcprotocollib/auth/util/HTTPUtils.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/protocol/src/main/java/org/geysermc/mcprotocollib/auth/util/HTTPUtils.java b/protocol/src/main/java/org/geysermc/mcprotocollib/auth/util/HTTPUtils.java index 75f0046f..8781c69b 100644 --- a/protocol/src/main/java/org/geysermc/mcprotocollib/auth/util/HTTPUtils.java +++ b/protocol/src/main/java/org/geysermc/mcprotocollib/auth/util/HTTPUtils.java @@ -32,9 +32,7 @@ public class HTTPUtils { } public static T makeRequest(@Nullable ProxyInfo proxy, URI uri, Object input, Class responseType) throws IOException { - if (proxy == null) { - throw new IllegalArgumentException("Proxy cannot be null."); - } else if (uri == null) { + if (uri == null) { throw new IllegalArgumentException("URI cannot be null."); }