Fix crash with a null push id
This commit is contained in:
parent
e224709280
commit
f9a716add1
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue