fixed null pointer issue

This commit is contained in:
Daniel Gultsch 2014-03-28 12:58:40 +01:00
parent 0b235171a8
commit b966464324

View File

@ -206,7 +206,7 @@ public class ConversationActivity extends XmppActivity {
@Override @Override
public void onPanelClosed(View arg0) { public void onPanelClosed(View arg0) {
paneShouldBeOpen = false; paneShouldBeOpen = false;
if (conversationList.size() > 0) { if ((conversationList.size() > 0)&&(getSelectedConversation()!=null)) {
getActionBar().setDisplayHomeAsUpEnabled(true); getActionBar().setDisplayHomeAsUpEnabled(true);
getActionBar().setTitle(getSelectedConversation().getName(useSubject)); getActionBar().setTitle(getSelectedConversation().getName(useSubject));
invalidateOptionsMenu(); invalidateOptionsMenu();