am 4f2b0708: am 64605820: Fix NPE in CallLogProviderWorker
* commit '4f2b0708448e477ecac9f657fc5cb910eb07f2de':
Fix NPE in CallLogProviderWorker
diff --git a/src/com/android/providers/contacts/CallLogProvider.java b/src/com/android/providers/contacts/CallLogProvider.java
index 76481bd..b5dbd06 100644
--- a/src/com/android/providers/contacts/CallLogProvider.java
+++ b/src/com/android/providers/contacts/CallLogProvider.java
@@ -515,7 +515,7 @@
if (tm != null) {
PhoneAccount account = tm.getPhoneAccount(handle);
- if (account != null) {
+ if (account != null && account.getAddress() != null) {
// We did not find any items for the specific phone account, so run the
// query based on the phone number instead.
mDbHelper.getWritableDatabase().execSQL(UNHIDE_BY_ADDRESS_QUERY,