[ 
https://issues.apache.org/jira/browse/CAMEL-16356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17301783#comment-17301783
 ] 

Christoph Giera commented on CAMEL-16356:
-----------------------------------------

https://github.com/apache/camel/pull/5215

> custom LdapEndpoint: inconsistent type for pageSize leads to NPE 
> -----------------------------------------------------------------
>
>                 Key: CAMEL-16356
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16356
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ldap
>    Affects Versions: 2.20.2, 3.8.0
>            Reporter: Christoph Giera
>            Priority: Minor
>             Fix For: 3.9.0
>
>
> The getter/setter for pageSize have inconsistent/incorrect types:
> {code:java}
> public void setPageSize(Integer pageSize) {
>         this.pageSize = pageSize;    
> }
> public int getPageSize() {
>         return pageSize;    
> } {code}
> If you want to create a custom ldap component and you subclass the endpoint 
> you have to use the getter which leads to an nullpointer exception:
> {code:java}
> public Producer createProducer() throws Exception {
>  return new MyLdapProducer(this, remainingLdap, getBase(), 
> toSearchControlScope(getScope()), ->getPageSize()<-, getReturnedAttributes());
>  } {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to