From bf36ccdecea16cdaaaf0bbd273d0a172d0748ee8 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 6 May 2005 01:53:31 +0000 Subject: [PATCH] more stuff git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@307 9efc2488-bf62-4759-914b-345cdb29e865 --- src/javascript/JSON.js | 2 ++ 1 file changed, 2 insertions(+) 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]; -- 2.11.0