Fixing corner case
This commit is contained in:
parent
3e748162fc
commit
3a057c8870
|
@ -1169,14 +1169,15 @@ public class CKANPackage extends CKAN implements Moderated {
|
|||
moderationThread = ModerationThread.getDefaultInstance();
|
||||
moderationThread.setCKANUser(ckanUser);
|
||||
|
||||
String itemAuthorCkanUsername = "";
|
||||
JsonNode jsonNode = getExtraField(result, Moderated.SYSTEM_CM_ITEM_AUTHOR);
|
||||
if(jsonNode!=null) {
|
||||
itemAuthorCkanUsername = jsonNode.asText();
|
||||
moderationThread.setItemAuthorCkanUsername(itemAuthorCkanUsername);
|
||||
if(result!=null) {
|
||||
String itemAuthorCkanUsername = "";
|
||||
JsonNode jsonNode = getExtraField(result, Moderated.SYSTEM_CM_ITEM_AUTHOR);
|
||||
if(jsonNode!=null) {
|
||||
itemAuthorCkanUsername = jsonNode.asText();
|
||||
moderationThread.setItemAuthorCkanUsername(itemAuthorCkanUsername);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return moderationEnabled;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue