Skip to content

Commit 7ac9e61

Browse files
committed
JSON: fix JsonReadOnlyProxyArray not iterating on a null or missing field
- should return immediately if the backing field is null or missing
1 parent 64f9ffe commit 7ac9e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SnowBank.Core/Data/JSON/Proxies/JsonReadOnlyProxyArray.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public IEnumerator<TProxy> GetEnumerator()
156156
// the result would change if there are additional items in the array
157157
if (!m_value.TryGetCount(out var count))
158158
{
159-
if (m_value.GetJsonUnsafe())
159+
if (m_value.GetJsonUnsafe().IsNullOrMissing())
160160
{
161161
yield break;
162162
}

0 commit comments

Comments
 (0)