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
public void onPanelClosed(View arg0) {
paneShouldBeOpen = false;
if (conversationList.size() > 0) {
if ((conversationList.size() > 0)&&(getSelectedConversation()!=null)) {
getActionBar().setDisplayHomeAsUpEnabled(true);
getActionBar().setTitle(getSelectedConversation().getName(useSubject));
invalidateOptionsMenu();