From 852d57b5896b310cb34b0b9a8d054ef6cbb75afd Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Wed, 31 Jul 2024 07:54:25 -0400 Subject: [PATCH] validate data to prevent crash --- source/api/Items.bs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/api/Items.bs b/source/api/Items.bs index 718d184a2..82c5203a8 100644 --- a/source/api/Items.bs +++ b/source/api/Items.bs @@ -53,6 +53,8 @@ function searchMedia(query as string) "limit": 100 }) + if data = invalid then return [] + results = [] for each item in data.Items tmp = CreateObject("roSGNode", "SearchData")