fixed npe

This commit is contained in:
iNPUTmice 2014-10-06 19:27:58 +02:00
parent 16d5429f80
commit 0a93093bc7
1 changed files with 5 additions and 2 deletions

View File

@ -669,8 +669,11 @@ public class ConversationActivity extends XmppActivity implements
@Override @Override
public void onSaveInstanceState(Bundle savedInstanceState) { public void onSaveInstanceState(Bundle savedInstanceState) {
Conversation conversation = getSelectedConversation();
if (conversation!=null) {
savedInstanceState.putString(STATE_OPEN_CONVERSATION, savedInstanceState.putString(STATE_OPEN_CONVERSATION,
getSelectedConversation().getUuid()); conversation.getUuid());
}
savedInstanceState.putBoolean(STATE_PANEL_OPEN, savedInstanceState.putBoolean(STATE_PANEL_OPEN,
isConversationsOverviewVisable()); isConversationsOverviewVisable());
super.onSaveInstanceState(savedInstanceState); super.onSaveInstanceState(savedInstanceState);