Binding a parameter whose type is primitive to null results in a difficult to
understand NullPointerException
-------------------------------------------------------------------------------------------------------------
Key: TAP5-1227
URL: https://issues.apache.org/jira/browse/TAP5-1227
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.2.0
Reporter: Howard M. Lewis Ship
NPE is appropriate, but a blank message is not. The message should be
something like:
"Parameter com.example.components.Layout.section is primitive type int and may
not be bound to null. You should convert this parameter to type
java.lang.Integer."
Possibly we could get some similar effect by automatically forcing allowNull to
false for primitive type parameters.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.