NullPointerException in PermissionManager when null entity is passed

XMLWordPrintable

      In theory null should not be passed as an entity (issue or project) to the hasPermission methods. However, some bad code sometimes does this.

      in this case, instead of allowing the code in hasPermission method to throw the real NullPointerException with a proper error message, the NullPointerException is dropped as another NullPointerException is generated in the finally block which is meant to generate method call timing statistics.

      Need to ensure that line 126 in AbstractPermissionManager caters for null projectOrIssue.

            Assignee:
            Mark Lassau (Inactive)
            Reporter:
            AntonA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h