summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2016-03-24 11:37:44 -0700
committerTom Powell <zifnab@zifnab06.net>2017-03-26 16:21:09 -0700
commitdfe008e91dfc3a9b35f7f375161746e21b5091e5 (patch)
treec5f29dd30ef6d7bc019b2f26873509297f010571
parent145e3fa26c6944b5bd29bc0405af4e5dda4b0a97 (diff)
downloadandroid_packages_apps_Trebuchet-dfe008e91dfc3a9b35f7f375161746e21b5091e5.zip
android_packages_apps_Trebuchet-dfe008e91dfc3a9b35f7f375161746e21b5091e5.tar.gz
android_packages_apps_Trebuchet-dfe008e91dfc3a9b35f7f375161746e21b5091e5.tar.bz2
Trebuchet: Fix NPE while binding unavailable items
Issue-id: CYNGNOS-2282 Change-Id: I6895c3c043a2b8a9506f3dc2f8a357942d8f35c4
-rw-r--r--src/com/android/launcher3/Workspace.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index 78dcdc9..9a4bab2 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -4359,7 +4359,9 @@ public class Workspace extends PagedView
final int N = folderPagedView.getItemCount();
for (int page = 0; page < N; page++) {
final CellLayout cellLayout = folderPagedView.getPageAt(page);
- updateUnvailableItemsInCellLayout(cellLayout, packages);
+ if (cellLayout != null) {
+ updateUnvailableItemsInCellLayout(cellLayout, packages);
+ }
}
folder.invalidate();
}