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: Core Components
    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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to