[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
(ITS#4008) [JLDAP] LDAPConnection class does not handle null LDAPSearchQueue and LDAPSearchConstraints in search method
- To: openldap-its@OpenLDAP.org
- Subject: (ITS#4008) [JLDAP] LDAPConnection class does not handle null LDAPSearchQueue and LDAPSearchConstraints in search method
- From: jglynn@bjc.org
- Date: Tue, 6 Sep 2005 22:04:57 GMT
Full_Name: John Glynn
Version: CVS HEAD
OS: java
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (159.251.88.4)
Using a null LDAPSearchQueue as a parameter in the search method throws a
NullPointerException. This behavior does not match that of the wrapped novell
LDAPConnection. Additionally, there does not seem to be any way of constructing
a LDAPSearchQueue since there are no public constructors for those, so this
method really should handle nulls. Changing the wrapped call from
search(...,queue,...) to
search(...,(queue==null?null:queue.getWrappedObject()),...) works like Novell
intended.