1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-19 06:51:57 +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();
break;
case 8:
if (!currentRemoteUser.isNew) {
if (currentRemoteUser != null && !currentRemoteUser.isNew) {
sendCommand(CMD_DO_MEASUREMENT, encodeUserId(currentRemoteUser));
stopMachineState();
} else {