From 60208997ea016406b90de162d6df7c6449044abb Mon Sep 17 00:00:00 2001 From: zaxar163 Date: Tue, 20 Nov 2018 20:15:23 +0300 Subject: [PATCH] NPE AuthLimiter fix. --- .../src/main/java/ru/gravit/launchserver/auth/AuthLimiter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/auth/AuthLimiter.java b/LaunchServer/src/main/java/ru/gravit/launchserver/auth/AuthLimiter.java index 4f205b8f..faef83be 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/auth/AuthLimiter.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/auth/AuthLimiter.java @@ -59,7 +59,7 @@ public String toString() { public AuthLimiter(LaunchServer srv) { map = new HashMap<>(); excludeIps = new ArrayList<>(); - srv.config.authLimitExclusions.stream(StringConfigEntry.class).forEach(excludeIps::add); + if (srv.config.authLimitExclusions != null) srv.config.authLimitExclusions.stream(StringConfigEntry.class).forEach(excludeIps::add); rateLimit = srv.config.authRateLimit; rateLimitMilis = srv.config.authRateLimitMilis; }