Merge "Fix NPE on startup."

This commit is contained in:
Ben Komalo 2011-05-05 12:11:46 -07:00 committed by Android (Google) Code Review
commit c01b66dcf4

View File

@ -487,7 +487,9 @@ class UIControllerTwoPane implements
* for the mailbox list. The two may be different.
*/
public long getMessageListMailboxId() {
return mMessageListFragment.getMailboxId();
return (mMessageListFragment == null)
? Mailbox.NO_MAILBOX
: mMessageListFragment.getMailboxId();
}
public long getMessageId() {