am 861c5c8c: Guard against potential NPE.

* commit '861c5c8c9e054a4562af44805c57f39e7121ca43':
  Guard against potential NPE.
This commit is contained in:
Yu Ping Hu 2013-03-22 02:29:29 +00:00 committed by Android Git Automerger
commit 3b1ad7034d

View File

@ -525,7 +525,9 @@ public abstract class EmailServiceStub extends IEmailService.Stub implements IEm
// 3. loop through the available messages and send them
while (c.moveToNext()) {
long messageId = -1;
moveToSentValues.remove(EmailContent.MessageColumns.FLAGS);
if (moveToSentValues != null) {
moveToSentValues.remove(EmailContent.MessageColumns.FLAGS);
}
try {
messageId = c.getLong(0);
// Don't send messages with unloaded attachments