74143e89d538ce74e8c95e04cee56dca9412a7bd |
|
05-May-2011 |
Marc Blank <mblank@google.com> |
Prevent NPE's in calls to database utility methods * Before the Email/Exchange split, EmailProvider was guaranteed not to return a null cursor; this is no longer true * We now throw a new RuntimeException (ProviderUnavailableException) when calling commonly-used utility methods (e.g. restoreXWithId) and the cursor as returned from EmailProvider is null (which implies that the provider isn't available). Change-Id: I152d13bff0129c23586cd570d23c87d69cfce372
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ProviderUnavailableException.java
|