do not attempt to parse null UUID

This commit is contained in:
Michael Becker 2024-11-07 07:33:35 -05:00
parent 4907bcba10
commit c59aba76f7

View File

@ -176,8 +176,11 @@
return $result;
}
public static function parse(string $value)
public static function parse(?string $value) : ?UUID
{
if ($value == null)
return null;
$result = UUID::TryParseGuidWithDashes($value);
return $result->parsedGuid;
}