It's the GAE datastore.  When you add a new field, say an int, it uses null for 
the missing field in the datastore, then when it tries to unbox it; i.e., 
((Integer) null).intValue() you get the NPE.


Jeffrey Goetsch wrote:
> Why do I get a NullPointerException when I add a new primitive field to 
> an object?  Why doesn't JDO just recognize that it is a primitive and 
> leave the default value?
> 
> Thanks,
> --Jeff
> 
> --
> 
> You received this message because you are subscribed to the Google 
> Groups "Google App Engine for Java" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-appengine-java?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to