IntegerBox and Editor framework question
Hello everyone.
I'm using an IntegerBox in an Editor<> widget, with a POJO having an
associated getter and setter for an "int", and a SimpleBeanEditorDriver to
bind the editor and the POJO.
When I call the driver's flush() method, if the contents of the IntegerBox is
not a valid integer (empty string for instance), a NPE will be raised when
attempting to convert from the IntegerBox's Integer to the setter's int.
The obvious workarounds I see are either to manually check the content before
calling flush(), or changing my "int" property to "Integer" (but in this case I
can't have my POJO be a JSON overlay type, something that is useful).
Am I missing some obvious solution?
Any hints appreciated :)
Kind regards
Nicolas
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home