[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#4008) [JLDAP] LDAPConnection class does not handle null LDAPSearchQueue and LDAPSearchConstraints in search method

Full_Name: John Glynn
Version: CVS HEAD
OS: java
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

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