Details

      Description

      While accessing update user method through web service when service context is null, customer is still getting a Null Pointer exception. A null check is missing in the code.

      Steps to reproduce:

      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, long prefixId, long 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
      3) Deploy the portlet or execute the webservice , you will get

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              adorjan.nagy Adorjan Nagy (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 35 weeks ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5