summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcretin45 <cretin45@gmail.com>2016-03-24 18:37:44 (GMT)
committercretin45 <cretin45@gmail.com>2016-03-24 18:38:20 (GMT)
commite812052ff07a96e5008fdfea671357c74baf21e3 (patch)
treeca30a9381dca7b8f9961fbedf4ec963b90c2f564
parent27f915deda69206c7707fb8139c73de442cd5c1c (diff)
downloadandroid_packages_apps_Trebuchet-e812052ff07a96e5008fdfea671357c74baf21e3.zip
android_packages_apps_Trebuchet-e812052ff07a96e5008fdfea671357c74baf21e3.tar.gz
android_packages_apps_Trebuchet-e812052ff07a96e5008fdfea671357c74baf21e3.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 6114157..d5b6de0 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -4375,7 +4375,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();
}