minor cleanup

This commit is contained in:
xenohedron 2023-10-15 01:05:25 -04:00
parent 7f2924b764
commit 6e6ecfb339

View file

@ -88,7 +88,7 @@ class GollumObsessedStalkerWatcher extends Watcher {
return; return;
} }
playersPerName.computeIfAbsent(name, k -> new HashSet()); playersPerName.computeIfAbsent(name, k -> new HashSet<>());
playersPerName.get(name).add(playerId); playersPerName.get(name).add(playerId);
} }
@ -171,7 +171,7 @@ enum GollumObsessedStalkerHint implements Hint {
name = gollumObj.getName(); name = gollumObj.getName();
} }
} }
if (name.isEmpty()) { if (name == null || name.isEmpty()) {
return ""; return "";
} }
@ -194,4 +194,4 @@ enum GollumObsessedStalkerHint implements Hint {
public GollumObsessedStalkerHint copy() { public GollumObsessedStalkerHint copy() {
return instance; return instance;
} }
} }