Merge "Fix NPE for real" into jb-dev

This commit is contained in:
Michael Jurka
2012-05-04 15:58:02 -07:00
committed by Android (Google) Code Review

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);