[
https://issues.apache.org/jira/browse/MYFACES-3708?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Leonardo Uribe resolved MYFACES-3708.
-------------------------------------
Resolution: Fixed
Fix Version/s: 2.1.12
2.0.18
Assignee: Leonardo Uribe
I think add the null check doesn't harm.
> NPE when no title using primefaces mobile
> -----------------------------------------
>
> Key: MYFACES-3708
> URL: https://issues.apache.org/jira/browse/MYFACES-3708
> Project: MyFaces Core
> Issue Type: Bug
> Affects Versions: 2.1.10
> Environment: primefaces 3.5, primefaces mobile 0.93, OWB 1.1.7,
> Tomcat 7
> Reporter: Karl Kildén
> Assignee: Leonardo Uribe
> Priority: Minor
> Fix For: 2.0.18, 2.1.12
>
>
> Primefaces mobile pages are described with pm:page and you can set
> title="your title".
> I don't want a title so I left the attribute out but that caused NPE.
> HtmlResponseWriterImpl
> 1018 if (str.length() > 0)
> The string in that case is null hence the length check causes NPE. Not sure
> if str != null should be added or not , maybe primefaces is doing something
> bad.
> Workaround is to use title="" but it's not very pretty.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira