fixed npe
This commit is contained in:
parent
16d5429f80
commit
0a93093bc7
|
@ -669,8 +669,11 @@ public class ConversationActivity extends XmppActivity implements
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSaveInstanceState(Bundle savedInstanceState) {
|
public void onSaveInstanceState(Bundle savedInstanceState) {
|
||||||
savedInstanceState.putString(STATE_OPEN_CONVERSATION,
|
Conversation conversation = getSelectedConversation();
|
||||||
getSelectedConversation().getUuid());
|
if (conversation!=null) {
|
||||||
|
savedInstanceState.putString(STATE_OPEN_CONVERSATION,
|
||||||
|
conversation.getUuid());
|
||||||
|
}
|
||||||
savedInstanceState.putBoolean(STATE_PANEL_OPEN,
|
savedInstanceState.putBoolean(STATE_PANEL_OPEN,
|
||||||
isConversationsOverviewVisable());
|
isConversationsOverviewVisable());
|
||||||
super.onSaveInstanceState(savedInstanceState);
|
super.onSaveInstanceState(savedInstanceState);
|
||||||
|
|
Loading…
Reference in a new issue