debugging null pointer exception

This commit is contained in:
Ahmed Salah Tawfik Ibrahim 2024-04-16 16:23:19 +02:00
parent 3f69781aaa
commit b7bf1f6a17
1 changed files with 3 additions and 3 deletions

View File

@ -147,11 +147,11 @@ public class LiferayWSUserManager implements UserManager{
private GCubeUser mapLRUser(String json){ private GCubeUser mapLRUser(String json){
try{ try{
if (json != null) { if (json != null) {
logger.info("user json to be parsed: " , json); logger.info("user json to be parsed: " + json);
JSONParser parser = new JSONParser(); JSONParser parser = new JSONParser();
JSONObject userJSON = (JSONObject)parser.parse(json); JSONObject userJSON = (JSONObject)parser.parse(json);
if(userJSON!=null){ if(userJSON!=null){
logger.info("parsed user json: " , userJSON.toString()); logger.info("parsed user json: " + userJSON.toString());
} }
// TODO skip for now // TODO skip for now
List<Email> emails = new ArrayList<Email>(); List<Email> emails = new ArrayList<Email>();
@ -166,7 +166,7 @@ public class LiferayWSUserManager implements UserManager{
logger.warn("Failed to retrieve property " + USER_LOCATION_INDUSTRY_KEY, e1); logger.warn("Failed to retrieve property " + USER_LOCATION_INDUSTRY_KEY, e1);
} }
if(userJSON!=null){ if(userJSON!=null){
logger.info("parsed user json: " , userJSON.toString()); logger.info("parsed user json: " + userJSON.toString());
} }
// retrieve the contact id information (it is into the user json) // retrieve the contact id information (it is into the user json)
String jsonContact; String jsonContact;