[
https://issues.apache.org/jira/browse/DIRAPI-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emmanuel Lecharny resolved DIRAPI-119.
--------------------------------------
Resolution: Fixed
Added some checks to avoid those NPE.
Fixed with http://svn.apache.org/viewvc?rev=1442292&view=rev
> Soem NPE when sendning some request with lacking data
> -----------------------------------------------------
>
> Key: DIRAPI-119
> URL: https://issues.apache.org/jira/browse/DIRAPI-119
> Project: Directory Client API
> Issue Type: Bug
> Reporter: Emmanuel Lecharny
> Priority: Critical
>
> Sending a request, like a ModifyRequest, with some missing data like the DN
> will leads to some NPE inside the encoder, which will translates to some
> cryptic error being returned by the server :
> org.apache.directory.api.ldap.model.exception.LdapException: PROTOCOL_ERROR:
> The server will disconnect!
> We need to return a decent error, and also avoid any NPE.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira