You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Bogdan Calmac <bc...@gmail.com> on 2007/03/24 18:36:39 UTC

Empty Double TextField causes NPE

I have a TextField on a Form which is bound to a Double property. This
field is not required so it is OK for the user to leave it empty. But
when Tapestry updates the property, a NullPointerException is thrown:

Caused by: java.lang.RuntimeException: Coercion of null to type
java.lang.Double (via null --> String, String --> Double) failed:
java.lang.NullPointerException
       at org.apache.tapestry.ioc.internal.services.TypeCoercerImpl.coerce(TypeCoercerImpl.java:154)
       at $TypeCoercer_11183ff0378.coerce($TypeCoercer_11183ff0378.java)
       at org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.writeParameter(InternalComponentResourcesImpl.java:217)


Thanks,


Bogdan Calmac.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org