You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Harald Geritzer (JIRA)" <de...@tapestry.apache.org> on 2007/10/31 08:12:51 UTC
[jira] Updated: (TAPESTRY-1855) NullPointerException in
org.apache.tapestry.corelib.components.Output.java/beginRender
[ https://issues.apache.org/jira/browse/TAPESTRY-1855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Harald Geritzer updated TAPESTRY-1855:
--------------------------------------
Component/s: (was: Core Components)
tapestry-core
> 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
>
> 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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org