You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Stanton Sievers (JIRA)" <ji...@apache.org> on 2013/10/17 13:13:42 UTC
[jira] [Commented] (SHINDIG-1941) BeanJsonConverter fails with
NullPointerException for empty ExtendableBeans
[ https://issues.apache.org/jira/browse/SHINDIG-1941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797795#comment-13797795 ]
Stanton Sievers commented on SHINDIG-1941:
------------------------------------------
Thanks for the write up and the patch. Can you post this on [Review Board|https://reviews.apache.org/dashboard/] and add "shindig" as the group reviewer. That will e-mail the dev list with the review. You can have a look at the "Creating and submitting a patch" portion of [the Shindig wiki|http://shindig.apache.org/community_overview.html] for more information.
Thanks!
> 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)