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

              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              adorjan.nagy Adorjan Nagy (Inactive)
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8 years, 10 weeks, 1 day ago

                Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5