Skip to content

Commit

Permalink
Handling null
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Sep 15, 2024
1 parent c61b228 commit 20ad55f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SC.CLI/Executor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,9 @@ private static void LogConfigDetails(Configuration config, Action<string> logger
else
{
if (toStringMethod != null)
value = toStringMethod.Invoke(field.GetValue(config), new object[] { CultureInfo.InvariantCulture }).ToString();
value = toStringMethod.Invoke(field.GetValue(config), new object[] { CultureInfo.InvariantCulture })?.ToString();
else
value = field.GetValue(config).ToString();
value = field.GetValue(config)?.ToString();
}
}
// Output it
Expand Down

0 comments on commit 20ad55f

Please sign in to comment.