Cocoon
  1. Cocoon
  2. COCOON-2243

NPE when calling ApplicationUtil.isUserInRole

    Details

    • Urgency:
      Normal
    • Other Info:
      Patch available
    • Affects version (Component):
      Blocks: Authentication - 1.0.0
    • Fix version (Component):
      Blocks: Authentication

      Description

      A NullPointerException is thrown when calling ApplicationUtil.isUserInRole(final User user, final String role, final Map objectModel) with user == null. The attached patch should fix that issue. Patch was made against the nightly build (cocoon_20080909041525.tar.gz).

      I hope I submitted everything correctly.

        Activity

        Hide
        Benjamin Boksa added a comment -
        Patch that should handle user == null when calling isUserInRole
        Show
        Benjamin Boksa added a comment - Patch that should handle user == null when calling isUserInRole
        Hide
        Jörg Heinicke added a comment -
        Patch applied. Thanks, Benjamin.
        Show
        Jörg Heinicke added a comment - Patch applied. Thanks, Benjamin.

          People

          • Assignee:
            Jörg Heinicke
            Reporter:
            Benjamin Boksa
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development