Skip to content

Commit fb81fa2

Browse files
committed
Fixed license exception not showing (closes #192)
1 parent 2916fee commit fb81fa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MyTested.AspNetCore.Mvc.Licensing/LicenseValidator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ internal static class LicenseValidator
1818

1919
public static bool Validate(IEnumerable<string> licenses, DateTime releaseDate, string projectNamespace)
2020
{
21-
if (licenses == null)
21+
if (licenses == null || !licenses.Any())
2222
{
2323
throw new InvalidLicenseException("No license provided");
2424
}

0 commit comments

Comments
 (0)