1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-21 07:51:46 +02:00

check if remote user is not null see #470

This commit is contained in:
oliexdev
2019-06-08 11:07:13 +02:00
parent 34f812a493
commit 49fd74ffe2

View File

@@ -234,7 +234,7 @@ public class BluetoothBeurerSanitas extends BluetoothCommunication {
stopMachineState(); stopMachineState();
break; break;
case 8: case 8:
if (!currentRemoteUser.isNew) { if (currentRemoteUser != null && !currentRemoteUser.isNew) {
sendCommand(CMD_DO_MEASUREMENT, encodeUserId(currentRemoteUser)); sendCommand(CMD_DO_MEASUREMENT, encodeUserId(currentRemoteUser));
stopMachineState(); stopMachineState();
} else { } else {