From 7616bea8be1e198c7926990c0ec4ef05c3a00723 Mon Sep 17 00:00:00 2001 From: Tom Vonsild Date: Tue, 14 Mar 2017 11:16:34 +0100 Subject: [PATCH] Fix showstopper bug ```options.list``` is undefined. Causes server to crash. Removing the ```.list``` part seems to fix the problem. /var/www/bogprisbot/node_modules/big-xml-streamer/lib/big-xml.js:14 options.lists = options.lists || []; ^ TypeError: Cannot read property 'lists' of undefined at new BigXmlReader (/var/www/bogprisbot/node_modules/big-xml-streamer/lib/big-xml.js:14:26) at Object.exports.createReader (/var/www/bogprisbot/node_modules/big-xml-streamer/lib/big-xml.js:8:10) --- lib/big-xml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/big-xml.js b/lib/big-xml.js index af98e24..a1c25ff 100644 --- a/lib/big-xml.js +++ b/lib/big-xml.js @@ -11,7 +11,7 @@ exports.createReader = function(filename, recordRegEx, options) { function BigXmlReader(filename, recordRegEx, options) { var self = this; - options.lists = options.lists || []; + options = options || []; options.gzip = options.gzip || false; var parser = new expat.Parser('UTF-8');