myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (MYFACES-3708) NPE when no title using primefaces mobile
Date Thu, 18 Apr 2013 02:59:15 GMT

     [ 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

Mime
View raw message