Potentially fixing Java 16 issues v1.3.1

This commit is contained in:
Dawson Hessler
2021-08-21 13:33:17 -04:00
parent 2cd7951bca
commit fbba41fd71
9 changed files with 32 additions and 11 deletions
@@ -96,7 +96,7 @@ public class MySqlVPN implements VPNDatabase {
ResultSet set = Query.prepare("select uuid from `whitelisted` where `uuid` = ? limit 1").append(uuid.toString())
.executeQuery();
return set != null && !set.wasNull() && set.next() && set.getString("uuid") != null;
return set != null && set.getFetchSize() > 0 && set.next() && set.getString("uuid") != null;
}
@Override