Fix NullReferenceException
parent
715dc5d3d9
commit
2df717b5db
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue