c851f854bbb0ec671270ff54e75b4a01f02f9281
Under expected circumstances, those null pointer checks are not needed: onCreate() is always called before onCreateView(), and the former creates the objects: mBluetoothSelectA2dpCodec, mBluetoothSelectA2dpSampleRate, mBluetoothSelectA2dpBitsPerSample, mBluetoothSelectA2dpChannelMode, mBluetoothSelectA2dpLdacPlaybackQuality . For some unknown reason, somehow the following chain of calls is executed before onCreate() : onCreateView() -> getActivity().registerReceiver(mBluetoothA2dpReceiver, ...) -> mBluetoothA2dpReceiver.onReceive(...) -> updateBluetoothA2dpConfigurationValues() Adding the null pointer checks until the issue is understood. Test: Code compilation Bug: 35204511 Change-Id: I7c1d81015e66b26544b7b26f36cbc75f11713496
Description
No description provided
Languages
Java
89.8%
Kotlin
10.2%