# HG changeset patch # User Nicholas Jillings # Date 1516295212 0 # Node ID d79b9939b19eca7f0df84c57cf287d9ee449fad7 # Parent 972b55d81c1bf7bf2bb7a2740cdca959ab0e48f4 Fix for no diff -r 972b55d81c1b -r d79b9939b19e js/specification.js --- a/js/specification.js Thu Jan 18 10:12:12 2018 +0000 +++ b/js/specification.js Thu Jan 18 17:06:52 2018 +0000 @@ -131,8 +131,9 @@ this[attributeName] = projectAttr; } } - - this.calibration.decode(this, projectXML.getElementsByTagName('calibration')[0]); + if (projectXML.getElementsByTagName('calibration').length > 0) { + this.calibration.decode(this, projectXML.getElementsByTagName('calibration')[0]); + } var exitTextNode = setupNode.getElementsByTagName('exitText'); if (exitTextNode.length == 1) {