diff --git a/CHANGELOG.md b/CHANGELOG.md index 7cc55802b..7407c3647 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ * Pebble: Support replying to SMS form the watch (canned replies) * Pebble: Allow installing apps compiled with SDK 2.x also on the basalt platform (Time, Time Steel) * Pebble: Fix decoding strings in appmessages from the pebble (fixes sending SMS from "Dialer for Pebble") -* Pebble: support incoming reconnections when device returns from "Airplane Mode" or "Stand-By Mode" +* Pebble: Support incoming reconnections when device returns from "Airplane Mode" or "Stand-By Mode" +* Pebble: Fix crash when turning off bluetooth when connected on Android 6.0 * Mi Band: reserve some alarm slots for alerting when upcoming events begin. NB: the band will vibrate at the start time of the event, android reminders are ignored * Mi Band: Display unique devices Names, not just "MI" * Some new and updated icons diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java index 3e4edbd5f..6d24bad33 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java @@ -178,6 +178,9 @@ public class PebbleIoThread extends GBDeviceIoThread { mIsTCP = false; BluetoothDevice btDevice = mBtAdapter.getRemoteDevice(btDeviceAddress); ParcelUuid uuids[] = btDevice.getUuids(); + if (uuids == null) { + return false; + } for (ParcelUuid uuid : uuids) { LOG.info("found service UUID " + uuid); }