bilred / jenabean

Automatically exported from code.google.com/p/jenabean
0 stars 0 forks source link

NullPointerException using an attribute returning a short value #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, if I have an attribute as short, for example
 protected short gxTv_SdtCustomer_Customerage
when saving my Bean, such as
 writer.save(myCust); 
the following error occurs:
 java.lang.NullPointerException
    at com.hp.hpl.jena.rdf.model.impl.ModelCom.add(ModelCom.java:939)
    at
com.hp.hpl.jena.rdf.model.impl.ResourceImpl.addProperty(ResourceImpl.java:245)
    at thewebsemantic.Bean2RDF.saveOrUpdate(Bean2RDF.java:160)
    at thewebsemantic.Bean2RDF.write(Bean2RDF.java:148)
    at thewebsemantic.Bean2RDF._write(Bean2RDF.java:114)
    at thewebsemantic.Bean2RDF.write(Bean2RDF.java:107)
    at thewebsemantic.Bean2RDF.save(Bean2RDF.java:78)
I've tested with the 07-SNAPSHOT.jar file
Regards,
    Luciano

Original issue reported on code.google.com by ladri...@gmail.com on 15 Jan 2009 at 8:46

GoogleCodeExporter commented 9 years ago
Thanks Luciano, I'll update the bug when this is fixed.

Original comment by thewebse...@gmail.com on 16 Jan 2009 at 4:35

GoogleCodeExporter commented 9 years ago

Original comment by thewebse...@gmail.com on 16 Jan 2009 at 4:36

GoogleCodeExporter commented 9 years ago
fixed in snapshot 0.8, with several test cases added for class members as well 
as
arrays of type short.

Original comment by thewebse...@gmail.com on 22 Jan 2009 at 1:02

GoogleCodeExporter commented 9 years ago
Hi, it worked fine for my sample. thanks!

Original comment by ladri...@gmail.com on 31 Jan 2009 at 3:00