diff --git a/core/modules/wiki.js b/core/modules/wiki.js index b6e9fa068..64abe9e89 100755 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -193,11 +193,11 @@ exports.generateNewTitle = function(baseTitle,options) { }; exports.isSystemTiddler = function(title) { - return title.indexOf("$:/") === 0; + return title && title.indexOf("$:/") === 0; }; exports.isTemporaryTiddler = function(title) { - return title.indexOf("$:/temp/") === 0; + return title && title.indexOf("$:/temp/") === 0; }; exports.isImageTiddler = function(title) {