Small fix

This commit is contained in:
Bart Sopers 2021-02-12 20:17:12 +01:00
parent 323f7ae30e
commit e2e2c579d4

View file

@ -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);