Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8231196

DelegationPermission allows to create an instance that thows NPE on ::equals call

    XMLWordPrintable

    Details

      Description

      Please see the following code sample

      import javax.security.auth.kerberos.DelegationPermission;
      ...
              DelegationPermission d1 = new DelegationPermission("\"abc\"");
              DelegationPermission d2 = new DelegationPermission("\"abc\"");
              d1.equals(d2);

      Execution result would be:

      Exception in thread "main" java.lang.NullPointerException
      at java.security.jgss/javax.security.auth.kerberos.DelegationPermission.equals(DelegationPermission.java:170)

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              Assignee:
              weijun Weijun Wang
              Reporter:
              dbessono Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: