From: erickson Date: Fri, 6 May 2005 01:53:31 +0000 (+0000) Subject: more stuff X-Git-Tag: osrf_rel_2_0_1~1565 X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bf36ccdecea16cdaaaf0bbd273d0a172d0748ee8;p=OpenSRF.git more stuff git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@307 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/javascript/JSON.js b/src/javascript/JSON.js index 27a7594..1abb364 100644 --- a/src/javascript/JSON.js +++ b/src/javascript/JSON.js @@ -32,6 +32,8 @@ function JSON2js (json) { function object2Array(obj) { + if( obj == null ) return null; + var arr = new Array(); for( var i = 0; i < obj.length; i++ ) { arr[i] = obj[i];