mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-06 20:46:57 +00:00
Missing error check in serializeTiddler
This commit is contained in:
parent
3520454a47
commit
a41d3753e7
@ -121,7 +121,7 @@ exports.addTiddler = function(tiddler) {
|
|||||||
exports.serializeTiddler = function(title,type) {
|
exports.serializeTiddler = function(title,type) {
|
||||||
var serializer = $tw.Wiki.tiddlerSerializerPlugins[type],
|
var serializer = $tw.Wiki.tiddlerSerializerPlugins[type],
|
||||||
tiddler = this.getTiddler(title);
|
tiddler = this.getTiddler(title);
|
||||||
if(serializer) {
|
if(serializer && tiddler) {
|
||||||
return serializer.call(this,tiddler);
|
return serializer.call(this,tiddler);
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user