Uploaded image for project: 'ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)'
  1. ZZZ: PUBLIC - Old Liferay Portal (Use Liferay Portal Standard Edition)
  2. LEP-7008

Bag should never be null error - java.lang.NullPointerException

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.1.0
    • 5.1.0, 5.1.2
    • None
    • None
    • Ubuntu 7.10
      Sun Java 6
      Tomcat 6

    Description

      When a community owner assigns a community member to the community administrator role through the communities portlet the following occurs:

      1. portlet responds with : You do not have the required permissions.
      2. User is assigned to the role successfully even though the error appeared.
      3. The owner is not capable of REMOVING the assigned administrator role.
      4. The following appears in catalina.out:

      13:16:52,614 ERROR [AdvancedPermissionChecker:619] Bag should never be null
      13:16:52,615 ERROR [AdvancedPermissionChecker:254] java.lang.NullPointerException
      java.lang.NullPointerException
      at com.liferay.portal.security.permission.AdvancedPermissionChecker.isCommunityOwnerImpl(AdvancedPermissionChecker.java:622)
      at com.liferay.portal.security.permission.AdvancedPermissionChecker.isCommunityOwner(AdvancedPermissionChecker.java:251)
      at com.liferay.portal.service.impl.UserGroupRoleServiceImpl.deleteUserGroupRoles(UserGroupRoleServiceImpl.java:81).....
      <<cut>>

      Attachments

        Activity

          People

            gavin.wan Gavin Wan (Inactive)
            uploope James Loope (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Packages

                Version Package
                5.1.0
                5.1.2