Fixed crash after remote provisioning

This commit is contained in:
Sylvain Berfini 2018-11-30 15:35:21 +01:00
parent fc8082a427
commit 268f830674

View file

@ -457,6 +457,10 @@ public class ContactsManager extends ContentObserver implements FriendListListen
mAndroidContactsCache = new HashMap<>();
mContactsFetchedOnce = true;
if (mContext == null) {
mContext = LinphoneService.instance().getApplicationContext();
}
if (LinphonePreferences.instance() != null
&& LinphonePreferences.instance().isFriendlistsubscriptionEnabled()) {
String rls = getString(R.string.rls_uri);