Skip to content

Commit

Permalink
StringUtils check
Browse files Browse the repository at this point in the history
  • Loading branch information
sauravTM committed Nov 27, 2024
1 parent bba873d commit d99e1f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public ChangeCharEncodingService(String cs) {
public void doService(AdaptrisMessage msg) throws ServiceException {
String charEncoding = getCharEncoding();
//Check and evaluate if character encoding is an expression
if(charEncoding != null && InputFieldExpression.isExpression(charEncoding)) {
if(StringUtils.isNotBlank(charEncoding) && InputFieldExpression.isExpression(charEncoding)) {
charEncoding = msg.resolve(charEncoding);
}
msg.setContentEncoding(charEncoding);
Expand Down

0 comments on commit d99e1f1

Please sign in to comment.