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 597860c commit 01929ddCopy full SHA for 01929dd
AdvancedCore/src/com/bencodez/advancedcore/api/user/userstorage/mysql/MySQL.java
@@ -366,13 +366,9 @@ public ConcurrentHashMap<UUID, String> getRowsUUIDNameQuery() {
366
while (rs.next()) {
367
String uuid = rs.getString("uuid");
368
String playerName = rs.getString("PlayerName");
369
- if (uuid != null && !uuid.isEmpty() && !uuid.equals("null")) {
370
- try {
371
- uuidNames.put(UUID.fromString(uuid), playerName);
372
- } catch (NullPointerException e) {
373
- plugin.debug(e);
374
- // failsafe
375
- }
+ if (uuid != null && !uuid.isEmpty() && !uuid.equals("null") && playerName != null
+ && !playerName.isEmpty()) {
+ uuidNames.put(UUID.fromString(uuid), playerName);
376
}
377
378
sql.close();
0 commit comments