diff --git a/src/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java b/src/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java index 4c20a22926..af0cfc2b7c 100644 --- a/src/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java +++ b/src/org/thoughtcrime/securesms/notifications/SingleRecipientNotificationBuilder.java @@ -129,7 +129,9 @@ public class SingleRecipientNotificationBuilder extends AbstractNotificationBuil } else { displayName = DatabaseFactory.getLokiUserDatabase(context).getDisplayName(hexEncodedPublicKey); } - stringBuilder.append(Util.getBoldedString(displayName + ": ")); + if (displayName != null) { + stringBuilder.append(Util.getBoldedString(displayName + ": ")); + } } if (privacy.isDisplayMessage()) {