Null check service info

b/11754422

Change-Id: Iae3c87c894eb3d16880768a3b8894e43d75a5878
This commit is contained in:
Tony Mantler 2013-11-19 15:45:07 -08:00
parent 4b629cf258
commit 6953d5951f

View File

@ -2895,7 +2895,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;