johncarl81 / parceler

:package: Android Parcelables made easy through code generation.
http://parceler.org
Apache License 2.0
3.56k stars 273 forks source link

1.0.2 update for Enums doesn't check for null #116

Closed twig closed 9 years ago

twig commented 9 years ago

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String twig.nguyen.webportal.data.WebportalDay.name()' on a null object reference

johncarl81 commented 9 years ago

Shoot... I thought I handled that. That's what I get for not including an integration test. ^ This should do the trick.

twig commented 9 years ago

Thanks for the quick fix!

Checked out the diff, that preprocessor magic is definitely harder than it looks lol

johncarl81 commented 9 years ago

Most of that is JCodeModel. It's a little tough a first because you're writing code that writes code. Definitely requires a certain mindset.