From e2e2c579d4137aeca45ffcd4fb2a7b757ab66442 Mon Sep 17 00:00:00 2001 From: Bart Sopers Date: Fri, 12 Feb 2021 20:17:12 +0100 Subject: [PATCH] Small fix --- .../omnipod/dash/driver/pod/command/StopDeliveryCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/pod/command/StopDeliveryCommand.java b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/pod/command/StopDeliveryCommand.java index b6aa2b97b8..698163a2cf 100644 --- a/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/pod/command/StopDeliveryCommand.java +++ b/omnipod-dash/src/main/java/info/nightscout/androidaps/plugins/pump/omnipod/dash/driver/pod/command/StopDeliveryCommand.java @@ -79,10 +79,10 @@ public final class StopDeliveryCommand extends CommandBase { } @Override final StopDeliveryCommand buildCommand() { - if (this.deliveryType == null) { + if (deliveryType == null) { throw new IllegalArgumentException("deliveryType can not be null"); } - if (this.deliveryType == null) { + if (beepType == null) { throw new IllegalArgumentException("beepType can not be null"); } return new StopDeliveryCommand(address, sequenceNumber, multiCommandFlag, deliveryType, beepType);