Removed unneeded line of codes which causes null pointer bug

This commit is contained in:
Luca Frosini 2020-05-29 13:03:59 +02:00
parent 657ebdb85d
commit c7ffb6c9ed
1 changed files with 0 additions and 3 deletions

View File

@ -143,7 +143,6 @@ public class CKANUser extends CKAN {
ckanJobTitle = objectNode.get(ABOUT).asText();
}
if(portalJobTitle.compareTo(ckanJobTitle) != 0) {
objectNode = (ObjectNode) result;
objectNode.put(ABOUT, portalJobTitle);
return true;
}
@ -163,7 +162,6 @@ public class CKANUser extends CKAN {
ckanFullname = objectNode.get(FULL_NAME).asText();
}
if(portalFullname.compareTo(ckanFullname) != 0) {
objectNode = (ObjectNode) result;
objectNode.put(FULL_NAME, portalFullname);
objectNode.put(DISPLAY_NAME, portalFullname);
return true;
@ -184,7 +182,6 @@ public class CKANUser extends CKAN {
ckanEmail = objectNode.get(EMAIL).asText();
}
if(portalEmail.compareTo(ckanEmail) != 0) {
objectNode = (ObjectNode) result;
objectNode.put(EMAIL, portalEmail);
return true;
}