Hotfix NPE
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-02-24 13:36:19 +01:00
Ursprung fe09afdb34
Commit 38457db014

Datei anzeigen

@ -146,6 +146,9 @@ public class SteamwarUser {
} }
private static SteamwarUser loadPunishments(SteamwarUser user) { private static SteamwarUser loadPunishments(SteamwarUser user) {
if(user == null)
return null;
user.punishments = Punishment.getPunishmentsOfPlayer(user.getId()); user.punishments = Punishment.getPunishmentsOfPlayer(user.getId());
return user; return user;
} }