Fixed problem with retrieving non-existent list tiddlers

print-window-tiddler
Jeremy Ruston 2012-10-25 22:44:00 +01:00
rodzic 7c76ec02c2
commit ba4e140147
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 [];