am 2347b233: am 4700fed7: Maybe this will silence http://b/2460740
Merge commit '2347b2335b26edc5b7145759cc8a727fc712b970'
* commit '2347b2335b26edc5b7145759cc8a727fc712b970':
Maybe this will silence http://b/2460740
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java
index 6a6db7d..cf75250 100644
--- a/src/com/android/launcher2/AllAppsView.java
+++ b/src/com/android/launcher2/AllAppsView.java
@@ -1266,7 +1266,8 @@
* Send the apps list structures to RS.
*/
private void saveAppsList() {
- if (mScript != null) { // this happens when we init it
+ // WTF: how could mScript be not null but mAllocIconIds null b/2460740.
+ if (mScript != null && mAllocIconIds != null) {
mRS.contextBindRootScript(null);
mAllocIconIds.data(mIconIds);