Fix crash with a null push id

This commit is contained in:
Erwan Croze 2017-03-01 12:07:11 +01:00
parent e224709280
commit f9a716add1

View file

@ -1126,7 +1126,7 @@ public class LinphonePreferences {
} }
public void setPushNotificationRegistrationID(String regId) { public void setPushNotificationRegistrationID(String regId) {
getConfig().setString("app", "push_notification_regid", regId); getConfig().setString("app", "push_notification_regid", (regId != null) ? regId: "");
setPushNotificationEnabled(isPushNotificationEnabled()); setPushNotificationEnabled(isPushNotificationEnabled());
} }