From 46cc1082960af75db577ef12970cd9eba5d8590e Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Sat, 26 Aug 2023 09:18:08 -0500 Subject: [PATCH] Inflation error for null or empty install stanza properties --- Netkan/Validators/InstallValidator.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Netkan/Validators/InstallValidator.cs b/Netkan/Validators/InstallValidator.cs index 9312f35885..151d44c9db 100644 --- a/Netkan/Validators/InstallValidator.cs +++ b/Netkan/Validators/InstallValidator.cs @@ -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) {