Update TamagotchiService.java

This commit is contained in:
Steinwagner 2019-12-11 11:58:09 +01:00
parent c396f23e9d
commit ea60a15e89

View file

@ -93,7 +93,7 @@ public class TamagotchiService {
private void sendTamagotchiDefunctNotifiction(String id) {
Device device = deviceRegistry.get(id);
if (device == null) {
if (device == null || device.getId() == null || device.getOwner() == null) {
return;
}
String defunctMessage = String.format("Tamagotchi %s of %s passed away", device.getId(), device.getOwner());