Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
6.2.10 EE GA1, 6.2.X EE, 7.0.0 M3
-
6.2.x
-
Committed
-
2
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)