commit | a75053f5f90b9494cc60a99e2b80b419eb3724b9 | [log] [tgz] |
---|---|---|
author | Sunny Goyal <sunnygoyal@google.com> | Thu Sep 03 09:48:50 2015 -0700 |
committer | Sunny Goyal <sunnygoyal@google.com> | Thu Sep 03 09:48:50 2015 -0700 |
tree | 6944f6dd157c82aa3de601fe0caebb386ba89803 | |
parent | 7412c3cb005c3b3315ddb276386e2115f742d2e0 [diff] |
Preventing null pointer crash when opening a folder Bug: 23770713 Change-Id: I3ce82450358f1493f70639d594e1e3f391945437
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java index 44d70ba..856e3b8 100644 --- a/src/com/android/launcher3/Workspace.java +++ b/src/com/android/launcher3/Workspace.java
@@ -4089,7 +4089,7 @@ @Override public boolean evaluate(ItemInfo info, View v, View parent) { - return info.id == id; + return info != null && info.id == id; } }); }