shindig-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Kohn (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SHINDIG-1941) BeanJsonConverter fails with NullPointerException for empty ExtendableBeans
Date Thu, 17 Oct 2013 10:57:44 GMT
Andreas Kohn created SHINDIG-1941:
-------------------------------------

             Summary: 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


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)

Mime
View raw message