debugging null pointer exception

This commit is contained in:
Ahmed Salah Tawfik Ibrahim 2024-04-16 16:13:42 +02:00
parent 908ada851f
commit 3f69781aaa
1 changed files with 4 additions and 0 deletions

View File

@ -310,10 +310,14 @@ public class LiferayWSUserManager implements UserManager{
@Override
public GCubeUser getUserByUsername(String username)
throws UserManagementSystemException, UserRetrievalFault {
logger.info("username: " + username);
String jsonUser =
HttpUtils.executeHTTPGETRequest(API_BASE_URL + GET_USER_BY_USERNAME.replace("$COMPANY_ID", String.valueOf(companyId)).replace("$USER_ID", username),
credsProvider, localContext, target);
logger.info("jsonUser: " + jsonUser);
if(jsonUser != null){
logger.debug("Json user retrieved");