Fixed crash

This commit is contained in:
Sylvain Berfini 2018-04-12 14:56:54 +02:00
parent eaf1974501
commit ec1efbff81

View file

@ -1121,7 +1121,7 @@ public class LinphoneManager implements CoreListener, SensorEventListener, Accou
public void setCurrentChatRoomAddress(Address address) {
mCurrentChatRoomAddress = address;
LinphoneService.instance().setCurrentlyDisplayedChatRoom(address.asStringUriOnly());
LinphoneService.instance().setCurrentlyDisplayedChatRoom(address != null ? address.asStringUriOnly() : null);
}
@Override