In the LDAP Session, the catch blocks are not handled when a query has more than one solution. It does not have a proper catch clause.

0 votes

0 answers

74 views

ANSWER

Hi. Could you detail a bit what you mean? What method are you talking about? Could you give an example?
12/07/2018

Hi, method="getLdapEntry" . When a query has more than one answer, how to filter among the multiple results and provide the answer?

<violation beginline="401" endline="404" begincolumn="11" endcolumn="9" rule="EmptyCatchBlock" ruleset="Error Prone" package="org.nuxeo.ecm.directory.ldap" class="LDAPSession" method="getLdapEntry" externalInfoUrl="https://pmd.github.io/pmd/pmd_rules_java_errorprone.html#emptycatchblock" priority="3"> Avoid empty catch blocks </violation>

12/11/2018