Fix Notification registration crash when LpConfig not exist yet
This commit is contained in:
parent
c5db56b3fa
commit
828ea5943d
1 changed files with 3 additions and 2 deletions
|
@ -1126,8 +1126,9 @@ public class LinphonePreferences {
|
|||
}
|
||||
|
||||
public void setPushNotificationRegistrationID(String regId) {
|
||||
getConfig().setString("app", "push_notification_regid", (regId != null) ? regId: "");
|
||||
setPushNotificationEnabled(isPushNotificationEnabled());
|
||||
if (getConfig() == null) return;
|
||||
getConfig().setString("app", "push_notification_regid", (regId != null) ? regId: "");
|
||||
setPushNotificationEnabled(isPushNotificationEnabled());
|
||||
}
|
||||
|
||||
public String getPushNotificationRegistrationID() {
|
||||
|
|
Loading…
Reference in a new issue