If the address.address string is null, don't bother starting the
bluetooth service.
Signed-off-by: Keith Packard <keithp@keithp.com>
}
private void start_altos_bluetooth(DeviceAddress address, boolean pause) {
}
private void start_altos_bluetooth(DeviceAddress address, boolean pause) {
- if (bluetooth_adapter == null || !bluetooth_adapter.isEnabled())
+ if (bluetooth_adapter == null || !bluetooth_adapter.isEnabled() || address.address == null)
return;
disconnect(false);
return;
disconnect(false);