From cc31b08dfd707d4a471b340778afa7ff76a12325 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Wed, 24 Jul 2024 10:24:16 -0400 Subject: [PATCH] fix app crash when server api request returns invalid --- source/ShowScenes.bs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/ShowScenes.bs b/source/ShowScenes.bs index d59696eec..a02fab025 100644 --- a/source/ShowScenes.bs +++ b/source/ShowScenes.bs @@ -42,9 +42,10 @@ function LoginFlow() SendPerformanceBeacon("AppDialogInitiate") ' Roku Performance monitoring - Dialog Starting publicUsers = GetPublicUsers() - savedUsers = getSavedUsers() + numPubUsers = 0 + if isValid(publicUsers) then numPubUsers = publicUsers.count() - numPubUsers = publicUsers.count() + savedUsers = getSavedUsers() numSavedUsers = savedUsers.count() if numPubUsers > 0 or numSavedUsers > 0