From a630741098f73cdd10f73278a56453ff0bb0ee0a Mon Sep 17 00:00:00 2001 From: hacksalot Date: Fri, 18 Dec 2015 10:10:19 -0500 Subject: [PATCH] Fix exception. --- src/core/theme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/theme.js b/src/core/theme.js index 01a52f7..06d153b 100644 --- a/src/core/theme.js +++ b/src/core/theme.js @@ -152,7 +152,7 @@ Definition of the Theme class. .forEach(function( cssf ) { // For each CSS file, get its corresponding HTML file var idx = _.findIndex(fmts, function( fmt ) { - return fmt.pre === cssf.pre && fmt.ext === 'html'; + return fmt && fmt.pre === cssf.pre && fmt.ext === 'html'; }); cssf.action = null; fmts[ idx ].css = cssf.data;