Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2040

api.User#isUserInGroup should not throw exceptions

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3 M2
    • Component/s: {Unused} APIs
    • Labels:
      None
    • Tests:
      Unit
    • Similar issues:

      Description

      Sometimes a NullPointerException is thrown, which should be caught.

      java.lang.NullPointerException
      	at com.xpn.xwiki.api.User.isUserInGroup(User.java:51)
      

        Attachments

          Activity

            People

            • Assignee:
              sdumitriu Sergiu Dumitriu
              Reporter:
              sdumitriu Sergiu Dumitriu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: