mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-31 19:24:47 +02:00
Fix NPE on nullable uuid column
This commit is contained in:
@@ -127,7 +127,7 @@ public class AuthStorage {
|
|||||||
if (resultSet.next()) {
|
if (resultSet.next()) {
|
||||||
long userId = resultSet.getInt(1);
|
long userId = resultSet.getInt(1);
|
||||||
|
|
||||||
UUID uuid = UUIDAdapter.parseId(resultSet.getString(2));
|
UUID uuid = Optional.ofNullable(resultSet.getString(2)).map(UUIDAdapter::parseId).orElse(null);
|
||||||
|
|
||||||
String name = resultSet.getString(3);
|
String name = resultSet.getString(3);
|
||||||
boolean premium = resultSet.getBoolean(4);
|
boolean premium = resultSet.getBoolean(4);
|
||||||
|
Reference in New Issue
Block a user