We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 013c3e6 commit eaea9adCopy full SHA for eaea9ad
app/src/main/java/com/samsung/microbit/utils/BLEPair.java
@@ -643,7 +643,7 @@ public void onReceive(Context context, Intent intent) {
643
final int state = intent.getIntExtra(BluetoothDevice.EXTRA_BOND_STATE, BluetoothDevice.ERROR);
644
final int prevState = intent.getIntExtra(BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE, BluetoothDevice.ERROR);
645
logi("pairReceiver -" + " name = " + name + " addr = " + addr + " state = " + state + " prevState = " + prevState);
646
- if (name.isEmpty() || addr.isEmpty()) {
+ if (name == null || name.isEmpty() || addr.isEmpty()) {
647
return;
648
}
649
// Check the changed device is the one we are trying to pair
0 commit comments