Attempt to fix 5709. Has not been able to reproduce before or after
authorDennis Schafroth <dennis@indexdata.com>
Wed, 16 May 2012 11:46:17 +0000 (13:46 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 16 May 2012 11:46:17 +0000 (13:46 +0200)
js/pz2.js

index e2335da..e2c4cba 100644 (file)
--- 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);