am 6953d595: Null check service info

* commit '6953d5951fed975d2569ec46bd544ce21e6860dc':
  Null check service info
This commit is contained in:
Tony Mantler 2013-11-19 16:56:58 -08:00 committed by Android Git Automerger
commit 32786342d9

View File

@ -2896,7 +2896,9 @@ public class EmailProvider extends ContentProvider {
caps |= UIProvider.FolderCapabilities.IS_VIRTUAL;
}
if (!info.offerMoveTo) {
// If we don't know the protocol or the protocol doesn't support it, don't allow moving
// messages
if (info == null || !info.offerMoveTo) {
caps &= ~UIProvider.FolderCapabilities.CAN_ACCEPT_MOVED_MESSAGES &
~UIProvider.FolderCapabilities.ALLOWS_REMOVE_CONVERSATION &
~UIProvider.FolderCapabilities.ALLOWS_MOVE_TO_INBOX;