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

Change-Id: I848ca84b325339004ba8ea50a01f5240eea356f5
This commit is contained in:
Adam Cohen
2013-11-11 15:37:21 +00:00
parent 2777273a2a
commit ab087b9fbc

View File

@@ -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());