[
https://issues.apache.org/jira/browse/TAPESTRY-1855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Howard M. Lewis Ship closed TAPESTRY-1855.
------------------------------------------
Resolution: Duplicate
Assignee: Howard M. Lewis Ship
Duplicate of TAPESTRY-1869.
> NullPointerException in
> org.apache.tapestry.corelib.components.Output.java/beginRender
> --------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1855
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1855
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.6
> Reporter: Harald Geritzer
> Assignee: Howard M. Lewis Ship
>
> tapestry throws a NullPointerException in the component Output in beginRender
> if a date value is null.
> Line: String formatted = _format.format(_value);
> Possible fix(?): String formatted = null == _value ? null :
> _format.format(_value);
> boolean beginRender(MarkupWriter writer)
> {
> ---> String formatted = _format.format(_value);
> if (InternalUtils.isNonBlank(formatted))
> {
> if (_elementName != null)
> {
> writer.element(_elementName);
> _resources.renderInformalParameters(writer);
> }
> writer.write(formatted);
> if (_elementName != null) writer.end();
> }
> return false;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]