On Sun, May 9, 2010 at 6:15 AM, Stanislav Muhametsin
<[email protected]> wrote:
> Currently the JSONEntityState throws JSONException if there is a null value
> in some collection property. It seems that the problem is in
> org.qi4j.runtime.types.CollectionType . Replacing line 108 from
>
> Object value = array.get( i );
>
> to
>
> Object value = array.opt( i );
>
> fixed the problem.

Well, I am also looking at the toJSON, and wondering does it really
work to write it out in the first place?

I am looking at CollectionType, it calls for instance toJSON in
NumberType, which does a method call the passed value, i.e. the null.

What am I missing? I'll try to put together a couple of tests to capture this.


Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to