See have seen some null pointer exceptions while studying Unexpected Server Restarts. Let's get 'em.
ANY SLUGS INPUT
Null value for item.
Aug 25 22:46:08 asia wiki[31805]: [ 'how-to-wiki' ] Aug 25 22:46:08 asia wiki[31805]: /usr/local/lib/node_modules/wiki/node_modules/wiki-client/lib/resolve.coffee:58 Aug 25 22:46:08 asia wiki[31805]: string = string.replace(/〖(\d+)〗/g, "〖 $1 〗").replace(/\[\[([^\]]+)\]\]/gi, internal).replace(/\[((http|https|ftp):.*?) (.*?)\]/gi, external); Aug 25 22:46:08 asia wiki[31805]: ^ Aug 25 22:46:08 asia wiki[31805]: TypeError: Cannot read property 'replace' of undefined Aug 25 22:46:08 asia wiki[31805]: at Object.resolve.resolveLinks (/usr/local/lib/node_modules/wiki/node_modules/wiki-client/lib/resolve.coffee:56:6) Aug 25 22:46:08 asia wiki[31805]: at /usr/local/lib/node_modules/wiki/node_modules/wiki-server/lib/server.coffee:62:62 Aug 25 22:46:08 asia wiki[31805]: at Array.map (<anonymous>:null:null) Aug 25 22:46:08 asia wiki[31805]: at render (/usr/local/lib/node_modules/wiki/node_modules/wiki-server/lib/server.coffee:60:18) Aug 25 22:46:08 asia wiki[31805]: at Object.cb (/usr/local/lib/node_modules/wiki/node_modules/wiki-server/lib/server.coffee:305:18) Aug 25 22:46:08 asia wiki[31805]: at /usr/local/lib/node_modules/wiki/node_modules/wiki-server/lib/page.coffee:237:14 Aug 25 22:46:08 asia wiki[31805]: at /usr/local/lib/node_modules/wiki/node_modules/wiki-server/lib/page.coffee:64:7 Aug 25 22:46:08 asia wiki[31805]: at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)