Having null values in collections causes JSONEntityState to throw exception
---------------------------------------------------------------------------
Key: QI-246
URL: http://issues.ops4j.org/browse/QI-246
Project: Qi4j
Issue Type: Bug
Components: Core Runtime
Affects Versions: 1.0
Reporter: Stanislav Muhametsin
Assignee: Rickard Öberg
Fix For: 1.1
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev