You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by GitBox <gi...@apache.org> on 2021/02/18 17:28:54 UTC
[GitHub] [myfaces] benkard opened a new pull request #178: MYFACES-4380 LambdaBeanELResolver: Fix PropertyNotFoundException condition
benkard opened a new pull request #178:
URL: https://github.com/apache/myfaces/pull/178
PropertyNotFoundException was thrown if the name of the poperty requested was null, but it should really be thrown when the property itself is not found. This patch changes the nullness check accordingly.
Before:
java.lang.NullPointerException: Cannot invoke "org.apache.myfaces.core.api.shared.lang.PropertyDescriptorWrapper.getWrapped()" because "pd" is null
at org.apache.myfaces.el.resolver.LambdaBeanELResolver.getValue(LambdaBeanELResolver.java:78)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:136)
After:
javax.el.PropertyNotFoundException: Property [x] not found on type [com.example.FooBar_ClientProxy]
at org.apache.myfaces.el.resolver.LambdaBeanELResolver.getPropertyDescriptor(LambdaBeanELResolver.java:162)
at org.apache.myfaces.el.resolver.LambdaBeanELResolver.getValue(LambdaBeanELResolver.java:72)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:136)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [myfaces] tandraschko merged pull request #178: MYFACES-4380 LambdaBeanELResolver: Fix PropertyNotFoundException condition
Posted by GitBox <gi...@apache.org>.
tandraschko merged pull request #178:
URL: https://github.com/apache/myfaces/pull/178
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org