[
https://issues.apache.org/jira/browse/OFBIZ-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13146307#comment-13146307
]
Dimitri Unruh commented on OFBIZ-4545:
--------------------------------------
I think it make sense to check the date argument for null ant return null at
this case.
Think about the usage for example in freemarker templates:
{code}
${Static["org.ofbiz.base.util.UtilFormatOut"].formatDate(myGenericValue.date,
...)!}
{code}
If date in myGenericValue is empty I don't want to get a NPE :)
What do you think?
> DateFormat API extension
> ------------------------
>
> Key: OFBIZ-4545
> URL: https://issues.apache.org/jira/browse/OFBIZ-4545
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Reporter: Dimitri Unruh
> Priority: Minor
> Attachments: OFBIZ-4545.patch, OFBIZ-4545.patch, OFBIZ-4545.patch
>
>
> Some API extensions for Dateformating
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira