From ad5c2382cf713a266e2eb3db62bb3109f6378a95 Mon Sep 17 00:00:00 2001 From: microwin7 Date: Sat, 4 Sep 2021 08:54:34 +0300 Subject: [PATCH] [FIX] AdditionalHash_module --- .../gravit/launchserver/auth/provider/MySQLAuthProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/provider/MySQLAuthProvider.java b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/provider/MySQLAuthProvider.java index fbb0f387..d3be58ba 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/auth/provider/MySQLAuthProvider.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/auth/provider/MySQLAuthProvider.java @@ -24,9 +24,10 @@ public final class MySQLAuthProvider extends AuthProvider { @Override public void init(LaunchServer srv) { super.init(srv); + if (mySQLHolder == null) throw new RuntimeException("[Verify][AuthProvider] mySQLHolder cannot be null"); if (query == null) throw new RuntimeException("[Verify][AuthProvider] query cannot be null"); if (message == null) throw new RuntimeException("[Verify][AuthProvider] message cannot be null"); - if (mySQLHolder == null) throw new RuntimeException("[Verify][AuthProvider] mySQLHolder cannot be null"); + if (queryParams == null) throw new RuntimeException("[Verify][AuthProvider] queryParams cannot be null"); } @Override