From b962739f047a532cdeac42842d861d07e80cad9e Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Sun, 18 Nov 2012 14:57:28 +0000 Subject: [PATCH] Fix TW2 parser crashing on skinny tiddlers --- plugins/tiddlywiki/tw2parser/wikitextparser.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/tiddlywiki/tw2parser/wikitextparser.js b/plugins/tiddlywiki/tw2parser/wikitextparser.js index 9947745a9..74fc36584 100644 --- a/plugins/tiddlywiki/tw2parser/wikitextparser.js +++ b/plugins/tiddlywiki/tw2parser/wikitextparser.js @@ -64,6 +64,7 @@ WikiTextParser.prototype.installRules = function() { }; WikiTextParser.prototype.parse = function(type,text) { + text = text || ""; this.source = text; this.nextMatch = 0; this.children = [];