Null check for corner case NPE.

Fixes #3441
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2015-06-18 11:10:11 -07:00
parent f2ce1b4032
commit 2fb9806f36

View File

@ -313,7 +313,7 @@ public class MessageNotifier {
return;
}
Uri uri = recipients.getRingtone();
Uri uri = recipients != null ? recipients.getRingtone() : null;
if (uri == null) {
String ringtone = TextSecurePreferences.getNotificationRingtone(context);