fixed some NPE
This commit is contained in:
parent
e5378df39c
commit
9a8cc5b2e7
|
@ -436,6 +436,9 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
|
||||||
|
|
||||||
private void updateView() {
|
private void updateView() {
|
||||||
invalidateOptionsMenu();
|
invalidateOptionsMenu();
|
||||||
|
if (mConversation == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
final MucOptions mucOptions = mConversation.getMucOptions();
|
final MucOptions mucOptions = mConversation.getMucOptions();
|
||||||
final User self = mucOptions.getSelf();
|
final User self = mucOptions.getSelf();
|
||||||
String account;
|
String account;
|
||||||
|
|
|
@ -2606,7 +2606,12 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
|
||||||
service.sendChatState(conversation);
|
service.sendChatState(conversation);
|
||||||
}
|
}
|
||||||
if (storeNextMessage()) {
|
if (storeNextMessage()) {
|
||||||
runOnUiThread(() -> activity.onConversationsListItemUpdated());
|
runOnUiThread(() -> {
|
||||||
|
if (activity == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
activity.onConversationsListItemUpdated();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
runOnUiThread(this::updateSendButton);
|
runOnUiThread(this::updateSendButton);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue