Fixed: Must check in Node if path exists when doing 'fs.lstatSync' as it will throw if not.

This commit is contained in:
Martin Carlberg committed 2021-09-17 10:39:11 +02:00
1 parent 973fa1b978
commit 2f00d93b22
1 file changed
+1 -1
+1 -1
View File
@@ -853,7 +853,7 @@ var /* FILE = require("file"), */
{
themePath = PATH.join(PATH.normalize(themeDir), blendName);
if (!fs.lstatSync(themePath).isDirectory())
if (!fs.existsSync(themePath) || !fs.lstatSync(themePath).isDirectory())
themePath = themeDir = null;
}