Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-48923

Null Pointer Exception while accessing UpdateUser when Service Context is null

Details

    Description

      While accessing update user method through web service when service context is null, customer is getting Null Pointer exception, I have followed below steps to reproduce it :
      1) Created web service client or create a portlet.
      2) Call below method :
      public User updateUser(
      long userId, String oldPassword, String newPassword1,
      String newPassword2, boolean passwordReset,
      String reminderQueryQuestion, String reminderQueryAnswer,
      String screenName, String emailAddress, long facebookId,
      String openId, String languageId, String timeZoneId,
      String greeting, String comments, String firstName,
      String middleName, String lastName, int prefixId, int suffixId,
      boolean male, int birthdayMonth, int birthdayDay, int birthdayYear,
      String smsSn, String aimSn, String facebookSn, String icqSn,
      String jabberSn, String msnSn, String mySpaceSn, String skypeSn,
      String twitterSn, String ymSn, String jobTitle, long[] groupIds,
      long[] organizationIds, long[] roleIds,
      List<UserGroupRole> userGroupRoles, long[] userGroupIds,
      ServiceContext serviceContext)
      throws PortalException, SystemException
      3) Deploy the portlet or execute the webservice , you will get

      Expected Result:No Exception
      Actually Result:NullPointerException
      java.lang.NullPointerException
      at com.liferay.portal.service.impl.UserLocalServiceImpl.updateUser(UserLocalServiceImpl.java:4971)

      Attachments

        Issue Links

          Activity

            People

              hong.zhao Hong Zhao (Inactive)
              david.zhang David Zhang (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8 years, 17 weeks, 2 days ago

                Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M2