From 6070bde413f936c6fac5b2d898c8c056192e8960 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 6 Jun 2024 19:57:36 -0400 Subject: [PATCH] Avoid a null dereference. --- core/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.js b/core/core.js index 77443155..f1a583d5 100644 --- a/core/core.js +++ b/core/core.js @@ -1145,8 +1145,8 @@ async function blobHandler(request, response, blobId, uri) { } let app_object = JSON.parse(utf8Decode(await getBlobOrContent(app_id))); - id = app_object.files[uri.substring(1)]; - if (!id && app_object.files['handler.js']) { + id = app_object?.files[uri.substring(1)]; + if (!id && app_object?.files['handler.js']) { let answer; try { answer = await useAppHandler(