Log return of null from query()

* This shouldn't happen, but ... log it just in case

Change-Id: I8b8df3fec84c9dd14ebb222ee665b0712f63f213
This commit is contained in:
Marc Blank 2011-07-27 16:48:35 -07:00
parent 786285b3a6
commit 7390b18776

View File

@ -1890,6 +1890,10 @@ public class EmailProvider extends ContentProvider {
if (cache != null && c != null && Email.DEBUG) {
cache.recordQueryTime(c, System.nanoTime() - time);
}
if (c == null) {
// This should never happen, but let's be sure to log it...
Log.e(TAG, "Query returning null for uri: " + uri + ", selection: " + selection);
}
}
if ((c != null) && !isTemporary()) {