From f9a716add18069a8f2191a8110a0d8f24cca113e Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Wed, 1 Mar 2017 12:07:11 +0100 Subject: [PATCH] Fix crash with a null push id --- src/org/linphone/LinphonePreferences.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/linphone/LinphonePreferences.java b/src/org/linphone/LinphonePreferences.java index a76604b08..a22a065e2 100644 --- a/src/org/linphone/LinphonePreferences.java +++ b/src/org/linphone/LinphonePreferences.java @@ -1126,7 +1126,7 @@ public class LinphonePreferences { } public void setPushNotificationRegistrationID(String regId) { - getConfig().setString("app", "push_notification_regid", regId); + getConfig().setString("app", "push_notification_regid", (regId != null) ? regId: ""); setPushNotificationEnabled(isPushNotificationEnabled()); }