Skip to content

Commit

Permalink
Fix Topic validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
pm7y committed May 14, 2022
1 parent 0e3f036 commit 863dd13
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void Validate()
InvalidOperationException($"Property '{nameof(MetadataVersion)}' was found to be set to '{MetadataVersion}', but was expected to either be null or be set to 1.");
}

if (Topic != null)
if (!string.IsNullOrEmpty(Topic))
{
throw new InvalidOperationException($"Property '{nameof(Topic)}' was found to be set to '{Topic}', but was expected to either be null/empty.");
}
Expand Down

0 comments on commit 863dd13

Please sign in to comment.