Christoph Giera created CAMEL-16356:
---------------------------------------

             Summary: 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: 3.8.0, 2.20.2
            Reporter: Christoph Giera


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