You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Udo Schnurpfeil (Resolved) (JIRA)" <de...@myfaces.apache.org> on 2012/03/07 21:10:58 UTC

[jira] [Resolved] (TOBAGO-507) renderedPartially with a null value throws a NullPointerException

     [ https://issues.apache.org/jira/browse/TOBAGO-507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Udo Schnurpfeil resolved TOBAGO-507.
------------------------------------

    Resolution: Cannot Reproduce

Can't reproduce.
Please describe how to reproduce this bug, if it is still a problem.
                
> renderedPartially with a null value throws a NullPointerException
> -----------------------------------------------------------------
>
>                 Key: TOBAGO-507
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-507
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.12
>         Environment: -
>            Reporter: Zied Hamdi
>            Priority: Minor
>
> renderedPartially commands with a null value throws a NullPointerException
> we can obtain null when we use templating.
> java.lang.NullPointerException
> at org.apache.myfaces.tobago.renderkit.html.CommandRendererHelper.initOnclick(CommandRendererHelper.java:100)
> at org.apache.myfaces.tobago.renderkit.html.CommandRendererHelper .<init>(CommandRendererHelper.java:61)
> at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TreeOldRenderer.getTreeNodeCommandVar(TreeOldRenderer.java:292)
> at org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TreeOldRenderer.createJavascript (TreeOldRenderer.java:251)
> in       } else if (command instanceof org.apache.myfaces.tobago.component.UICommand
>           &&  ((org.apache.myfaces.tobago.component.UICommand) command).getRenderedPartially().length > 0) {
> we should have  } else if (command instanceof org.apache.myfaces.tobago.component.UICommand
>           &&  ((org.apache.myfaces.tobago.component.UICommand) command).getRenderedPartially() != null && ((org.apache.myfaces.tobago.component.UICommand) command).getRenderedPartially().length > 0) {

--
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