OSDN Git Service

Fixing crash in configuration change for secondary users.
authorWinson <winsonc@google.com>
Wed, 23 Sep 2015 19:44:33 +0000 (12:44 -0700)
committerWinson Chung <winsonc@google.com>
Wed, 23 Sep 2015 19:51:16 +0000 (19:51 +0000)
- The crash is a regression caused by ag/773159.

packages/SystemUI/src/com/android/systemui/SystemUIApplication.java

index 7449009..5bf251b 100644 (file)
@@ -159,7 +159,9 @@ public class SystemUIApplication extends Application {
         if (mServicesStarted) {
             int len = mServices.length;
             for (int i = 0; i < len; i++) {
-                mServices[i].onConfigurationChanged(newConfig);
+                if (mServices[i] != null) {
+                    mServices[i].onConfigurationChanged(newConfig);
+                }
             }
         }
     }