DO NOT MERGE: Fix null dereference in carrier networks

WifiStateMachine can respond to CMD_HAS_CARRIER_CONFIGURED_NETWORKS
with a null object if it is not in a state to handle this.  Therefore
syncHasCarrierConfiguredNetworks must check for null before
attempting to cast the result object back to boolean.

Bug: 34050164
Test: Compile
Change-Id: I21b80ef3989ca2d6a09784f9c9a44f4af19b5850
1 file changed
tree: 27576e082aab31877ee674463f96678f82440d7c
  1. service/
  2. tests/