Skip to content

Commit

Permalink
Merge pull request #884 from Particular/fix-nre-add-instance-validation
Browse files Browse the repository at this point in the history
Fix NRE in Mgmt Util Add Instance screen
  • Loading branch information
Greg Bielleman authored Jan 1, 2017
2 parents 895b08c + becdbe8 commit 6a3ad5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public InstanceAddViewModelValidator()
.NotEqual(x => x.AuditQueueName).WithMessage(Validations.MSG_UNIQUEQUEUENAME, "Audit")
.NotEqual(x => x.ErrorForwardingQueueName).WithMessage(Validations.MSG_UNIQUEQUEUENAME, "Error Forwarding")
.MustNotBeIn(x => UsedQueueNames(x.SelectedTransport, x.InstanceName, x.ConnectionString)).WithMessage(Validations.MSG_QUEUE_ALREADY_ASSIGNED)
.When(x => x.SubmitAttempted && x.AuditForwarding.Value);
.When(x => x.SubmitAttempted && (x.AuditForwarding?.Value ?? false ));

RuleFor(x => x.ConnectionString)
.NotEmpty().WithMessage(Validations.MSG_THIS_TRANSPORT_REQUIRES_A_CONNECTION_STRING)
Expand Down

0 comments on commit 6a3ad5f

Please sign in to comment.