diff --git a/video_metadata/static/file_listing.js b/video_metadata/static/file_listing.js index 24c810d..20eca89 100644 --- a/video_metadata/static/file_listing.js +++ b/video_metadata/static/file_listing.js @@ -44,6 +44,11 @@ function addContents(node, json) { } function parseResponse(json, node) { + if (node == null) { + logError('parent node cannot be null'); + return; + } + if (json.errors.length > 0) { for (let err of json.errors) logError(err);