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

Commit ab087b9f authored by Adam Cohen's avatar Adam Cohen
Browse files

Fix NPE we're seeing in feedback (issue 11626428)

Change-Id: I848ca84b325339004ba8ea50a01f5240eea356f5
parent 2777273a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -327,7 +327,7 @@ public class DragController {
                for (AppInfo info : appInfos) {
                    // Added null checks to prevent NPE we've seen in the wild
                    if (dragInfo != null &&
                        dragInfo.intent != null) {
                            dragInfo.intent != null && info != null) {
                        ComponentName cn = dragInfo.intent.getComponent();
                        boolean isSameComponent = cn.equals(info.componentName) ||
                                packageNames.contains(cn.getPackageName());