Uploaded image for project: 'Rights API'
  1. Rights API
  2. RIGHTSAPI-9

saveRules() API fails with NPE when saving a rule that doesn't have the users list set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0-rc-2
    • 1.0-rc-1
    • None
    • Unknown

    Description

      There is nothing that prevents a WritableSecurityRule from being created with null for the list of users or groups, and the saveRules() API doesn't handle at all that case, it fails with a Null Pointer Exception.

      It should handle the null as an empty list.

      Attachments

        Activity

          People

            lucaa Anca Luca
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: