[ https://issues.apache.org/jira/browse/CAMEL-16356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-16356: -------------------------------- Fix Version/s: 3.9.0 > 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)