Skip to content

Commit

Permalink
Add empty string case for lenient gas (#626)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoschaMetze authored Dec 10, 2024
1 parent 1dc357a commit cd9d62f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ JsonSerializer serializer
rawValue = reader.Value?.ToString();
break;
}

if (string.IsNullOrEmpty(rawValue))
{
return null;
}
try
{
return Enums.Parse<Geraetemerkmal>(rawValue);
Expand Down

0 comments on commit cd9d62f

Please sign in to comment.