Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1321

Possible NPE in LdapSecurityRealm.closeContext

    Details

      Description

      There is missing null check in LdapSecurityRealm.closeContext [1] which can result to NPE.

      [1] https://github.com/wildfly-security/wildfly-elytron/blob/001e69270ddb6d277938bd65db75c455a69c7f03/src/main/java/org/wildfly/security/auth/realm/ldap/LdapSecurityRealm.java#L221

      ERROR [io.undertow.request] (default task-58) UT005023: Exception handling request to /LdapPerformance/protected/SimpleSecuredServlet: java.lang.NullPointerException
        at org.wildfly.security.auth.realm.ldap.LdapSecurityRealm.closeContext(LdapSecurityRealm.java:221)
        at org.wildfly.security.auth.realm.ldap.LdapSecurityRealm.access$500(LdapSecurityRealm.java:102)
        at org.wildfly.security.auth.realm.ldap.LdapSecurityRealm$LdapRealmIdentity.getAttributes(LdapSecurityRealm.java:543)
        at org.wildfly.security.auth.realm.ldap.LdapSecurityRealm$LdapRealmIdentity.getAuthorizationIdentity(LdapSecurityRealm.java:501)
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  honza889 Jan Kalina
                  Reporter:
                  honza889 Jan Kalina
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: