1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-24 02:27:19 +00:00

Missing error check in serializeTiddler

This commit is contained in:
Jeremy Ruston 2012-05-05 14:16:19 +01:00
parent 3520454a47
commit a41d3753e7

View File

@ -121,7 +121,7 @@ exports.addTiddler = function(tiddler) {
exports.serializeTiddler = function(title,type) {
var serializer = $tw.Wiki.tiddlerSerializerPlugins[type],
tiddler = this.getTiddler(title);
if(serializer) {
if(serializer && tiddler) {
return serializer.call(this,tiddler);
} else {
return null;