Почему Android Studio ловит breakpoint на var внутри if?

Почему breakpoint работает во втором if а в первом нет?

val bluetoothManager: BluetoothManager = getSystemService(BluetoothManager::class.java)
val bluetoothAdapter: BluetoothAdapter? = bluetoothManager.adapter
if(bluetoothAdapter == null) { 
  Log.e("error", "device doesn't support Bluetooth");
}
if(bluetoothAdapter == null) {
  var a = 5
}

введите сюда описание изображения


Ответы (0 шт):