diff options
-rw-r--r-- | src/com/android/contacts/interactions/CalendarInteractionsLoader.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/contacts/interactions/CalendarInteractionsLoader.java b/src/com/android/contacts/interactions/CalendarInteractionsLoader.java index 6e2539233..0e6f48328 100644 --- a/src/com/android/contacts/interactions/CalendarInteractionsLoader.java +++ b/src/com/android/contacts/interactions/CalendarInteractionsLoader.java @@ -61,6 +61,9 @@ public class CalendarInteractionsLoader extends AsyncTaskLoader<List<ContactInte @Override public List<ContactInteraction> loadInBackground() { + if (mEmailAddresses == null || mEmailAddresses.size() < 1) { + return Collections.emptyList(); + } // Perform separate calendar queries for events in the past and future. Cursor cursor = getSharedEventsCursor(/* isFuture= */ true, mMaxFutureToRetrieve); Log.v(TAG, "future cursor.count() " + cursor.getCount()); |