Prevent crash

pull/156/head
M66B 6 years ago
parent 7b2e8f5879
commit fa22664ed3

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

Loading…
Cancel
Save