We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9744452 commit ea6a111Copy full SHA for ea6a111
src/com/android/bluetooth/bthelper/pods/PodsService.java
@@ -136,11 +136,14 @@ public IBinder onBind (Intent intent) {
136
137
@Override
138
public int onStartCommand (Intent intent, int flags, int startId) {
139
- final BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
140
- if (device != null) {
141
- mCurrentDevice = device;
142
- setLowLatencyAudio(getApplicationContext());
143
- startAirPodsScanner();
+ try {
+ final BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
+ if (device != null) {
+ mCurrentDevice = device;
+ setLowLatencyAudio(getApplicationContext());
144
+ startAirPodsScanner();
145
+ }
146
+ } catch (NullPointerException e) {
147
}
148
return START_STICKY;
149
0 commit comments