extraneous null check

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 6
    • Affects Version/s: 5.0
    • Component/s: security-libs
    • beta
    • generic
    • solaris_9

      investigate whether the null check is necessary:

      ---------------------------------------------

      javax.security.auth.kerberos.ServicePermission

          private static int getMask(String action) {

              if (action == null) {
                  throw new NullPointerException("action can't be null");
              }

      ...

              if (action == null) {
                  return mask;
              }

            Assignee:
            Weijun Wang
            Reporter:
            Charlie Lai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: