1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-10 12:46:39 +00:00

Fix problem with parsing missing tiddlers

This commit is contained in:
Jermolene 2014-07-31 18:07:52 +01:00
parent 789ba1e85d
commit a61169e7e8

View File

@ -814,7 +814,11 @@ exports.parseTextReference = function(title,field,index,options) {
}
}
if(field === "text" || (!field && !index)) {
return this.parseText(tiddler.fields.type || "text/vnd.tiddlywiki",tiddler.fields.text,options);
if(tiddler && tiddler.fields) {
return this.parseText(tiddler.fields.type || "text/vnd.tiddlywiki",tiddler.fields.text,options);
} else {
return null;
}
} else if(field) {
if(field === "title") {
text = title;