am c9c23196: Merge "Fix NPE for real" into jb-dev

* commit 'c9c23196a11bda6fbc1c44f6d170b3626b036474':
  Fix NPE for real
This commit is contained in:
Michael Jurka
2012-05-04 16:01:21 -07:00
committed by Android Git Automerger

View File

@@ -714,7 +714,9 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
public void handleSwipe(View view) {
TaskDescription ad = ((ViewHolder) view.getTag()).taskDescription;
if (ad == null) {
Log.v(TAG, "Not able to find activity description for swiped task");
Log.v(TAG, "Not able to find activity description for swiped task; view=" + view +
" tag=" + view.getTag());
return;
}
if (DEBUG) Log.v(TAG, "Jettison " + ad.getLabel());
mRecentTaskDescriptions.remove(ad);