File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -726,7 +726,8 @@ public static bool TryConvertFromJson(
726
726
{
727
727
foreach (
728
728
JsonElement dependencyGroup in dependencyGroupsElement . EnumerateArray ( ) . Where (
729
- x => ! string . IsNullOrWhiteSpace ( x . GetProperty ( "@id" ) . GetString ( ) )
729
+ x => x . TryGetProperty ( "id" , out JsonElement idProperty ) &&
730
+ ! string . IsNullOrWhiteSpace ( idProperty . GetString ( ) )
730
731
)
731
732
)
732
733
{
@@ -736,7 +737,8 @@ JsonElement dependencyGroup in dependencyGroupsElement.EnumerateArray().Where(
736
737
{
737
738
foreach (
738
739
JsonElement dependency in dependenciesElement . EnumerateArray ( ) . Where (
739
- x => ! string . IsNullOrWhiteSpace ( x . GetProperty ( "@id" ) . GetString ( ) )
740
+ x => x . TryGetProperty ( "id" , out JsonElement idProperty ) &&
741
+ ! string . IsNullOrWhiteSpace ( idProperty . GetString ( ) )
740
742
)
741
743
)
742
744
{
You can’t perform that action at this time.
0 commit comments