diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index cb021c7d0d..24d854c58b 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -2298,7 +2298,8 @@ public class Launcher extends StatefulActivity if (item.container == CONTAINER_DESKTOP) { CellLayout cl = mWorkspace.getScreenWithId(presenterPos.screenId); if (cl != null && cl.isOccupied(presenterPos.cellX, presenterPos.cellY)) { - Object tag = cl.getChildAt(presenterPos.cellX, presenterPos.cellY).getTag(); + View occupiedView = cl.getChildAt(presenterPos.cellX, presenterPos.cellY); + Object tag = occupiedView == null ? null : occupiedView.getTag(); String desc = "Collision while binding workspace item: " + item + ". Collides with " + tag; if (FeatureFlags.IS_STUDIO_BUILD) {