You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/03/15 17:23:00 UTC
[jira] [Resolved] (CAMEL-16356) custom LdapEndpoint: inconsistent
type for pageSize leads to NPE
[ https://issues.apache.org/jira/browse/CAMEL-16356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-16356.
---------------------------------
Resolution: Fixed
> 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)