mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-11-14 19:34:58 -05:00
Fix proxy null check (#836)
This commit is contained in:
parent
060a4ee6df
commit
002754f3af
1 changed files with 1 additions and 3 deletions
|
@ -32,9 +32,7 @@ public class HTTPUtils {
|
|||
}
|
||||
|
||||
public static <T> T makeRequest(@Nullable ProxyInfo proxy, URI uri, Object input, Class<T> 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.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue