From ee1de3f87ee376b1bb8b7b035824b2a34f78e302 Mon Sep 17 00:00:00 2001 From: d4n Date: Tue, 27 Aug 2024 23:06:58 -0500 Subject: [PATCH] Fix bug on BingVisualSearch --- src/Apis/Bing/BingVisualSearch.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Apis/Bing/BingVisualSearch.cs b/src/Apis/Bing/BingVisualSearch.cs index 54b4c60..e4bba25 100644 --- a/src/Apis/Bing/BingVisualSearch.cs +++ b/src/Apis/Bing/BingVisualSearch.cs @@ -113,6 +113,10 @@ public async Task> ReverseImageSear } var defaultTag = GetImageTag(document, string.Empty); + + if (defaultTag.ValueKind == JsonValueKind.Undefined) + return []; + var visualSearchAction = defaultTag .GetProperty("actions"u8) .EnumerateArray()