OSDN Git Service

Fix potential NPE with ActionBar and SwitchBar references
authorFabrice Di Meglio <fdimeglio@google.com>
Tue, 20 May 2014 17:49:50 +0000 (10:49 -0700)
committerFabrice Di Meglio <fdimeglio@google.com>
Tue, 20 May 2014 17:53:04 +0000 (10:53 -0700)
commitd8aec08fa96c42a61bd6ead2aa9859b5b67a3f2c
tree12cf2c4943a08a00c8a5ccfbed5a24e8bc83345b
parent8b81bfff2ecc923774673ed37431951cd9fcaa67
Fix potential NPE with ActionBar and SwitchBar references

- in some rare cases (SetupWizard and select WiFi during account
creation) there is no ActionBar nor SwitchBar. Prevent any NPE
coming from them.

Change-Id: If52b9cdee8730c90c5da3067a1a35ebdd0255470
src/com/android/settings/SettingsActivity.java