Change-Id: I0955ceaeff76be5912e1add68d40b233d565b0d4
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);