Skip to content

Commit

Permalink
add checking for null
Browse files Browse the repository at this point in the history
  • Loading branch information
Hu committed Apr 11, 2024
1 parent eb816d5 commit 942bedb
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 942bedb

Please sign in to comment.