From fe69287b97d16c8941ab9463e4868fca45ad8152 Mon Sep 17 00:00:00 2001 From: Adam Cohen Date: Wed, 11 Dec 2013 14:47:23 -0800 Subject: [PATCH] Fix new NPE relating to reorder hints Change-Id: I80ff327ee549caef5802eb7194d48b1e8424ce47 --- src/com/android/launcher3/CellLayout.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/launcher3/CellLayout.java b/src/com/android/launcher3/CellLayout.java index a05dd90c05..75f6a196c0 100644 --- a/src/com/android/launcher3/CellLayout.java +++ b/src/com/android/launcher3/CellLayout.java @@ -2632,9 +2632,9 @@ public class CellLayout extends ViewGroup { } if (mode == MODE_SHOW_REORDER_HINT) { - beginOrAdjustReorderPreviewAnimations(finalSolution, dragView, 0, - ReorderPreviewAnimation.MODE_HINT); if (finalSolution != null) { + beginOrAdjustReorderPreviewAnimations(finalSolution, dragView, 0, + ReorderPreviewAnimation.MODE_HINT); result[0] = finalSolution.dragViewX; result[1] = finalSolution.dragViewY; resultSpan[0] = finalSolution.dragViewSpanX;