Prevent crash

This commit is contained in:
M66B 2019-06-23 18:20:52 +02:00
parent 7b2e8f5879
commit fa22664ed3
1 changed files with 5 additions and 2 deletions

View File

@ -3088,8 +3088,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
db.endTransaction(); db.endTransaction();
} }
if (message.identity != null) {
// Identity can be deleted
NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); NotificationManager nm = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
nm.cancel("send", message.identity.intValue()); nm.cancel("send", message.identity.intValue());
}
return null; return null;
} }