Fix NPE in CallLogProviderWorker

Bug: 20979730
Change-Id: I8ccaa27613804891b958dd82ac2debeb0dad762b
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,