Skip to content

Commit

Permalink
Merge pull request #330 from ncats/addNullChecking
Browse files Browse the repository at this point in the history
add checking for null
  • Loading branch information
ChemMitch authored Apr 11, 2024
2 parents eb816d5 + 942bedb commit ffd3266
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public void validate(Substance s, Substance objold, ValidatorCallback callback)
callback.addMessage(mes);
}

if(!HtmlUtil.isValid(cd.comments)) {
if(cd.comments!=null && !cd.comments.isEmpty() && !HtmlUtil.isValid(cd.comments)) {
cd.comments=HtmlUtil.clean(cd.comments, "UTF-8");
GinasProcessingMessage mes = GinasProcessingMessage
.WARNING_MESSAGE(
Expand Down

0 comments on commit ffd3266

Please sign in to comment.