From d99e1f137eee8415791a7c862bda2502ea18db69 Mon Sep 17 00:00:00 2001 From: "Mukherjee, Saurav (Proagrica-SY6)" Date: Wed, 27 Nov 2024 21:18:34 +1100 Subject: [PATCH] StringUtils check --- .../com/adaptris/core/services/ChangeCharEncodingService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interlok-core/src/main/java/com/adaptris/core/services/ChangeCharEncodingService.java b/interlok-core/src/main/java/com/adaptris/core/services/ChangeCharEncodingService.java index 5af407a64..10b138371 100644 --- a/interlok-core/src/main/java/com/adaptris/core/services/ChangeCharEncodingService.java +++ b/interlok-core/src/main/java/com/adaptris/core/services/ChangeCharEncodingService.java @@ -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);