From: Dennis Schafroth Date: Wed, 16 May 2012 11:46:17 +0000 (+0200) Subject: Attempt to fix 5709. Has not been able to reproduce before or after X-Git-Tag: v1.6.13~4 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=3fdae2167ba2d9bb2f1be79bf19d1d03a67aca88;p=pazpar2-moved-to-github.git Attempt to fix 5709. Has not been able to reproduce before or after --- diff --git a/js/pz2.js b/js/pz2.js index e2335da..e2c4cba 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -442,8 +442,9 @@ pz2.prototype = context.throwError('Show failed. Malformed WS resonse.', 114); }; + var approxNode = data.getElementsByTagName("approximation"); - if (approxNode) + if (approxNode && approxNode[0] && approxNode[0].childNodes[0] && approxNode[0].childNodes[0].nodeValue) show['approximation'] = Number( approxNode[0].childNodes[0].nodeValue);