Update TamagotchiService.java
This commit is contained in:
parent
c396f23e9d
commit
ea60a15e89
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue