Fix NullPointerException
This commit is contained in:
parent
7d9c1f8af9
commit
5e778f1e76
1 changed files with 2 additions and 2 deletions
|
@ -237,7 +237,7 @@ public class InsightAlertService extends Service implements InsightConnectionSer
|
|||
stopAlerting();
|
||||
showNotification(alert);
|
||||
SnoozeAlertMessage snoozeAlertMessage = new SnoozeAlertMessage();
|
||||
snoozeAlertMessage.setAlertID(alertLiveData.getValue().getAlertId());
|
||||
snoozeAlertMessage.setAlertID(alert.getAlertId());
|
||||
connectionService.requestMessage(snoozeAlertMessage).await();
|
||||
}
|
||||
} catch (AppLayerErrorException e) {
|
||||
|
@ -262,7 +262,7 @@ public class InsightAlertService extends Service implements InsightConnectionSer
|
|||
alertLiveData.postValue(null);
|
||||
dismissNotification();
|
||||
ConfirmAlertMessage confirmAlertMessage = new ConfirmAlertMessage();
|
||||
confirmAlertMessage.setAlertID(alertLiveData.getValue().getAlertId());
|
||||
confirmAlertMessage.setAlertID(alert.getAlertId());
|
||||
connectionService.requestMessage(confirmAlertMessage).await();
|
||||
this.alert = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue