We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a9b606 commit 597860cCopy full SHA for 597860c
AdvancedCore/src/com/bencodez/advancedcore/api/user/userstorage/mysql/MySQL.java
@@ -367,7 +367,12 @@ public ConcurrentHashMap<UUID, String> getRowsUUIDNameQuery() {
367
String uuid = rs.getString("uuid");
368
String playerName = rs.getString("PlayerName");
369
if (uuid != null && !uuid.isEmpty() && !uuid.equals("null")) {
370
- uuidNames.put(UUID.fromString(uuid), playerName);
+ try {
371
+ uuidNames.put(UUID.fromString(uuid), playerName);
372
+ } catch (NullPointerException e) {
373
+ plugin.debug(e);
374
+ // failsafe
375
+ }
376
}
377
378
sql.close();
0 commit comments