Fixing NPE in phone disambig dialog.

Bug: 2569645
Change-Id: I520cd8c602ca5de3e63d372a6826a34fc97c0dbe
diff --git a/src/com/android/contacts/PhoneDisambigDialog.java b/src/com/android/contacts/PhoneDisambigDialog.java
index 6ce944b..d8cb14e 100644
--- a/src/com/android/contacts/PhoneDisambigDialog.java
+++ b/src/com/android/contacts/PhoneDisambigDialog.java
@@ -156,11 +156,15 @@
             // ContactSource associated with that phone number
             TextView typeView = (TextView)view.findViewById(android.R.id.text1);
             DataKind kind = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE);
-            ContentValues values = new ContentValues();
-            values.put(Phone.TYPE, item.type);
-            values.put(Phone.LABEL, item.label);
-            StringInflater header = sendSms ? kind.actionAltHeader : kind.actionHeader;
-            typeView.setText(header.inflateUsing(getContext(), values));
+            if (kind != null) {
+                ContentValues values = new ContentValues();
+                values.put(Phone.TYPE, item.type);
+                values.put(Phone.LABEL, item.label);
+                StringInflater header = sendSms ? kind.actionAltHeader : kind.actionHeader;
+                typeView.setText(header.inflateUsing(getContext(), values));
+            } else {
+                typeView.setText(R.string.call_other);
+            }
             return view;
         }
     }