From ba4e140147d3e76e0c975f908084f6dc0db6dc6f Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 25 Oct 2012 22:44:00 +0100 Subject: [PATCH] Fixed problem with retrieving non-existent list tiddlers --- core/modules/wiki.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/wiki.js b/core/modules/wiki.js index 0cec568be..afed9834b 100644 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -358,7 +358,7 @@ Return the content of a tiddler as an array containing each line */ exports.getTiddlerList = function(title) { var tiddler = this.getTiddler(title); - if(tiddler.fields.text && tiddler.fields.text.length > 0) { + if(tiddler && tiddler.fields.text && tiddler.fields.text.length > 0) { return tiddler.fields.text.split("\n"); } return [];