mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 09:42:17 -05:00
fixed null pointer issue
This commit is contained in:
parent
0b235171a8
commit
b966464324
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user