From 850bd421490433d8bc832ecb3ba684dcf5aea92a Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 29 Dec 2016 17:05:28 +0100 Subject: [PATCH] don't try to display things that don't exist --- www/file/main.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/www/file/main.js b/www/file/main.js index a9f9b189d..c4df0e317 100644 --- a/www/file/main.js +++ b/www/file/main.js @@ -1188,6 +1188,9 @@ define([ var createTree = function ($container, path) { var root = filesOp.findElement(files, path); + // don't try to display what doesn't exist + if (!root) { return; } + // Display the root element in the tree var displayingRoot = filesOp.comparePath([ROOT], path); if (displayingRoot) {