Fix NullReferenceException

master
Harald Wolff 2020-12-03 14:19:28 +01:00
parent 715dc5d3d9
commit 2df717b5db
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
</PropertyGroup>
<PropertyGroup>
<Version>0.3.0-test</Version>
<Version>0.3.0</Version>
<Authors>Harald Wolff-Thobaben</Authors>
<Company>l--n.de</Company>
<Description>A simple build server scheduling builds triggered via web-hooks</Description>

View File

@ -5,7 +5,7 @@
</PropertyGroup>
<PropertyGroup>
<Version>0.3.0-test</Version>
<Version>0.3.0</Version>
<Authors>Harald Wolff-Thobaben</Authors>
<Company>l--n.de</Company>
<Description>A simple build server scheduling builds triggered via web-hooks</Description>

View File

@ -99,7 +99,7 @@ namespace ln.build.pipeline
JSONObject jsonSecrets = jsonStage["secrets"] as JSONObject;
foreach (string key in jsonSecrets.Keys)
{
CommandEnvironment.Set(key, CommandEnvironment.SecretStorage.GetSecret(jsonSecrets[key].ToNative().ToString()));
CommandEnvironment.Set(key, CommandEnvironment.SecretStorage?.GetSecret(jsonSecrets[key]?.ToNative()?.ToString()));
}
}