Avoid a null dereference.

This commit is contained in:
Cory McWilliams 2024-06-06 19:57:36 -04:00
parent c7a6d426f0
commit 6070bde413

View File

@ -1145,8 +1145,8 @@ async function blobHandler(request, response, blobId, uri) {
} }
let app_object = JSON.parse(utf8Decode(await getBlobOrContent(app_id))); let app_object = JSON.parse(utf8Decode(await getBlobOrContent(app_id)));
id = app_object.files[uri.substring(1)]; id = app_object?.files[uri.substring(1)];
if (!id && app_object.files['handler.js']) { if (!id && app_object?.files['handler.js']) {
let answer; let answer;
try { try {
answer = await useAppHandler( answer = await useAppHandler(