You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Zied Hamdi (JIRA)" <de...@myfaces.apache.org> on 2007/10/04 16:37:50 UTC
[jira] Created: (TOBAGO-507) renderedPartially with a null value
throws a NullPointerException
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.
-
You can reply to this email to add a comment to the issue online.