Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60e1efe0 authored by Adam Cohen's avatar Adam Cohen
Browse files

Fix NPE when dragging shortcut without component while app is uninstalled

issue 14601562

Change-Id: Icf0472d38c1b02de8421f146e26f2e2d79de43dd
parent bc9efe7a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -329,8 +329,8 @@ public class DragController {
                    if (dragInfo != null &&
                            dragInfo.intent != null && info != null) {
                        ComponentName cn = dragInfo.intent.getComponent();
                        boolean isSameComponent = cn.equals(info.componentName) ||
                                packageNames.contains(cn.getPackageName());
                        boolean isSameComponent = cn != null && (cn.equals(info.componentName) ||
                                packageNames.contains(cn.getPackageName()));
                        if (isSameComponent) {
                            cancelDrag();
                            return;