diff --git a/core/modules/macros/navigator.js b/core/modules/macros/navigator.js index bb01b83b9..e0496d14d 100644 --- a/core/modules/macros/navigator.js +++ b/core/modules/macros/navigator.js @@ -22,7 +22,12 @@ exports.info = { }; exports.getList = function(title) { - return this.wiki.getTextReference(title,"").split("\n"); + var text = this.wiki.getTextReference(title,""); + if(text && text.length > 0) { + return text.split("\n"); + } else { + return []; + } }; exports.saveList = function(title,list) {