As suggested by @HughIsaacs2. The Bluetooth code already assumes there might not be a BluetoothAdapter.