diff --git a/src/main/java/org/reactome/release/goupdate/GoTermsUpdater.java b/src/main/java/org/reactome/release/goupdate/GoTermsUpdater.java index 07ff943..dccaab1 100644 --- a/src/main/java/org/reactome/release/goupdate/GoTermsUpdater.java +++ b/src/main/java/org/reactome/release/goupdate/GoTermsUpdater.java @@ -251,11 +251,7 @@ else if (goTermsFromFile.get(goID).containsKey(GoUpdateConstants.IS_OBSOLETE) && { GKInstance created = (GKInstance) referrer.getAttributeValue(ReactomeJavaConstants.created); GKInstance author = (GKInstance) created.getAttributeValue(ReactomeJavaConstants.author); - if (author == null) { - System.out.println("ERROR: Referrer has null author: " + referrer); - } else { - obsoleteAccessionLogger.info("\t\"{}\", created by {} {} @ {}", referrer.toString(), author.getAttributeValue(ReactomeJavaConstants.firstname), author.getAttributeValue(ReactomeJavaConstants.surname), created.getAttributeValue(ReactomeJavaConstants.dateTime)); - } + obsoleteAccessionLogger.info("\t\"{}\", created by {} @ {}", referrer.toString(), author != null ? author.displayName(): "author not found", created.getAttributeValue(ReactomeJavaConstants.dateTime)); } } mainOutput.append(lineCount + " lines from the file were processed.\n");