Quick fixes

This commit is contained in:
Sylvain Berfini 2018-01-12 14:53:51 +01:00
parent 3ea8fce282
commit 3bf0b8a222
2 changed files with 3 additions and 3 deletions

View file

@ -1490,7 +1490,7 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou
public void isAccountWithAlias(){
if(LinphoneManager.getLc().getDefaultProxyConfig() != null) {
long now = new Timestamp(new Date().getTime()).getTime();
if (LinphonePreferences.instance().getLinkPopupTime() == null
if (accountCreator != null && LinphonePreferences.instance().getLinkPopupTime() == null
|| Long.parseLong(LinphonePreferences.instance().getLinkPopupTime()) < now) {
accountCreator.setUsername(LinphonePreferences.instance().getAccountUsername(LinphonePreferences.instance().getDefaultAccountIndex()));
accountCreator.isAccountExist();

View file

@ -364,9 +364,9 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
//TODO error
return;
}
Address proxyConfigContact = lc.getDefaultProxyConfig().getContact();
Address proxyConfigContact = core.getDefaultProxyConfig().getContact();
if (proxyConfigContact != null) {
mChatRoom = lc.findOneToOneChatRoom(proxyConfigContact, mRemoteSipAddress);
mChatRoom = core.findOneToOneChatRoom(proxyConfigContact, mRemoteSipAddress);
}
if (mChatRoom == null) {
mChatRoom = core.getChatRoomFromUri(mRemoteSipAddress.asStringUriOnly());