Skip to content

Commit

Permalink
Inflation error for null or empty install stanza properties
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Dec 12, 2023
1 parent ae00e7b commit 46cc108
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Netkan/Validators/InstallValidator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ public void Validate(Metadata metadata)
if (stanza.ContainsKey(propName))
{
string val = (string)stanza[propName];
if (string.IsNullOrEmpty(val))
{
throw new Kraken($"Install property '{propName}' is null or empty");
}
string norm = CKANPathUtils.NormalizePath(val);
if (val != norm)
{
Expand Down

0 comments on commit 46cc108

Please sign in to comment.