OSDN Git Service

Fix http://b/issue?id=2144841
authorEvan Millar <emillar@google.com>
Thu, 24 Sep 2009 23:45:09 +0000 (16:45 -0700)
committerandroid-build SharedAccount <android-build@sekiwake.mtv.corp.google.com>
Thu, 24 Sep 2009 23:58:33 +0000 (16:58 -0700)
Change-Id: I0955ceaeff76be5912e1add68d40b233d565b0d4

src/com/android/contacts/ContactsListActivity.java

index d5f6857..6a36229 100644 (file)
@@ -2248,7 +2248,9 @@ public final class ContactsListActivity extends ListActivity implements
             cache.dataView = (TextView) view.findViewById(R.id.data);
             cache.presenceView = (ImageView) view.findViewById(R.id.presence);
             cache.photoView = (FasttrackBadgeWidget) view.findViewById(R.id.photo);
-            cache.photoView.setExcludeMimes(new String[] {Contacts.CONTENT_ITEM_TYPE});
+            if (cache.photoView != null) {
+                cache.photoView.setExcludeMimes(new String[] {Contacts.CONTENT_ITEM_TYPE});
+            }
             cache.nonFastTrackPhotoView = (ImageView) view.findViewById(R.id.noFastTrackphoto);
             view.setTag(cache);