From 577e604df009df025ae3a5c5fa151c47f7877a43 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Fri, 5 Aug 2011 09:50:56 -0700 Subject: [PATCH] Catch case where provider reports returning null in error * Missed this one Change-Id: I080bd3b910827336fcfde818564067db5b4ec3cc --- src/com/android/email/provider/EmailProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/android/email/provider/EmailProvider.java b/src/com/android/email/provider/EmailProvider.java index f4c060fd0..fb19d8b0e 100644 --- a/src/com/android/email/provider/EmailProvider.java +++ b/src/com/android/email/provider/EmailProvider.java @@ -1832,7 +1832,8 @@ public class EmailProvider extends ContentProvider { if (accountCount < MAX_CACHED_ACCOUNTS) { mc = new MatrixCursor(projection, 1); mc.addRow(new Object[] {accountCount}); - return mc; + c = mc; + break; } } c = db.query(tableName, projection,