more stuff
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 6 May 2005 01:53:31 +0000 (01:53 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 6 May 2005 01:53:31 +0000 (01:53 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@307 9efc2488-bf62-4759-914b-345cdb29e865

src/javascript/JSON.js

index 27a7594..1abb364 100644 (file)
@@ -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];