From 9d69b4463fce6f6a90514442a4fd1b6a49d579de Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Fri, 4 May 2012 15:46:32 -0700 Subject: [PATCH] Fix NPE for real Bug: 6444814 --- .../src/com/android/systemui/recent/RecentsPanelView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java index 492fe4b84bb58..e865b9c005428 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java @@ -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);