[richfaces-issues] [JBoss JIRA] Commented: (RF-9776) CDK: code with potential NPEs is generated
Alexander Smirnov (JIRA)
jira-events at lists.jboss.org
Mon Jan 10 18:53:49 EST 2011
[ https://issues.jboss.org/browse/RF-9776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574541#comment-12574541 ]
Alexander Smirnov commented on RF-9776:
---------------------------------------
Putting null-value check into getter method makes it different with existing jsf-api attributes, so I suggest to put check into the place there attribute valie is used.
> CDK: code with potential NPEs is generated
> ------------------------------------------
>
> Key: RF-9776
> URL: https://issues.jboss.org/browse/RF-9776
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: cdk
> Affects Versions: 4.0.0.Milestone4
> Reporter: Nick Belaevski
> Assignee: Alexander Smirnov
> Priority: Critical
> Fix For: 4.0.0.CR1
>
> Original Estimate: 0 minutes
> Remaining Estimate: 0 minutes
>
> For the following code:
> @Attribute
> public abstract Boolean isEditable();
> the following code with potential NPEs is generated:
> public Boolean isEditable() {
> return Boolean.valueOf(getStateHelper().eval(Properties.editable).toString());
> }
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list