OSDN Git Service

Automated import from //branches/cupcake/...@141825,141825
authorJeff Hamilton <>
Wed, 25 Mar 2009 01:27:56 +0000 (18:27 -0700)
committerThe Android Open Source Project <initial-contribution@android.com>
Wed, 25 Mar 2009 01:27:56 +0000 (18:27 -0700)
src/com/android/contacts/ViewContactActivity.java

index 99e72b0..571e2e4 100644 (file)
@@ -893,6 +893,11 @@ public class ViewContactActivity extends ListActivity
     }
 
     String buildActionString(int actionResId, CharSequence type, boolean lowerCase) {
+        // If there is no type just display an empty string
+        if (type == null) {
+            type = "";
+        }
+
         if (lowerCase) {
             return getString(actionResId, type.toString().toLowerCase());
         } else {