[ 
https://issues.apache.org/jira/browse/SHINDIG-1941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797811#comment-13797811
 ] 

Andreas Kohn commented on SHINDIG-1941:
---------------------------------------

Done that. 

A minor note: the linked confluence page says "check the license grant box", 
but there is no such thing :)

For the record though: "I grant a license to ASF for inclusion in ASF works"

> BeanJsonConverter fails with NullPointerException for empty ExtendableBeans
> ---------------------------------------------------------------------------
>
>                 Key: SHINDIG-1941
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1941
>             Project: Shindig
>          Issue Type: Bug
>    Affects Versions: 2.5.0-update1
>            Reporter: Andreas Kohn
>         Attachments: shindig-1941-NPE-json.diff
>
>
> When trying to deserialize an empty JSON object into an ExtendableBean a 
> NullPointerException happens:
> {noformat}
> java.lang.NullPointerException
>       at 
> org.apache.shindig.protocol.conversion.BeanJsonConverter.convertToClass(BeanJsonConverter.java:274)
>       at 
> org.apache.shindig.protocol.conversion.BeanJsonConverter.convertToObject(BeanJsonConverter.java:180)
>       at 
> org.apache.shindig.protocol.conversion.BeanJsonConverter.convertToObject(BeanJsonConverter.java:133)
>       at 
> org.apache.shindig.protocol.conversion.BeanJsonConverter.convertToObject(BeanJsonConverter.java:127)
> {noformat}
> See attached patch for test and fix.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to