mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-02-05 05:24:12 +01:00
Bangle.js - small tweak to fix occasional NullPointerException reported via Play Store
This commit is contained in:
parent
c59249f8d1
commit
eac7edfea1
@ -192,7 +192,7 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GBDevice.ACTION_DEVICE_CHANGED: {
|
case GBDevice.ACTION_DEVICE_CHANGED: {
|
||||||
LOG.info("ACTION_DEVICE_CHANGED " + gbDevice.getStateString());
|
LOG.info("ACTION_DEVICE_CHANGED " + (gbDevice!=null ? gbDevice.getStateString():""));
|
||||||
addReceiveHistory("\n================================================\nACTION_DEVICE_CHANGED "+gbDevice.getStateString()+" "+(new SimpleDateFormat("yyyy-mm-dd hh:mm:ss")).format(Calendar.getInstance().getTime())+"\n================================================\n");
|
addReceiveHistory("\n================================================\nACTION_DEVICE_CHANGED "+gbDevice.getStateString()+" "+(new SimpleDateFormat("yyyy-mm-dd hh:mm:ss")).format(Calendar.getInstance().getTime())+"\n================================================\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user