commit | 72534295d3cf82df8b94c702ce3cc2fc36df67b5 | [log] [tgz] |
---|---|---|
author | Ben Lin <linben@google.com> | Thu Mar 02 11:37:39 2023 -0800 |
committer | David Jacobo <djacobo@google.com> | Wed Apr 05 22:34:16 2023 +0000 |
tree | f0e23f8f41c47cf5f55e263c68f0532cb99cb9a5 | |
parent | 4c3ac9b994dae3781a7ba9a53dac97a365a9becb [diff] |
Do isAvailable() checks when accessing AirplaneEnabler. This instance is only initialized if isAvailable() returns true in the first place, so we should check for it everytime we try to access it, or else we will result in a NPE. Bug: 271223463 Test: atest AirplaneModePreferenceControllerTest Change-Id: I43d35b91c86517201c8ec4f458f8c0328a9fb768