diff --git a/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/runner/DataTypeChecker.java b/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/runner/DataTypeChecker.java index bd6bbeed..0025a63e 100644 --- a/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/runner/DataTypeChecker.java +++ b/kraken-java-sdk/kraken-java-sdk-gateway/src/main/java/com/consoleconnect/kraken/operator/gateway/runner/DataTypeChecker.java @@ -70,6 +70,15 @@ default boolean checkExpectString(PathCheck pathCheck, Object variable) { variable, (dataType == null ? null : dataType.getSimpleName()), "String")); + } else if (StringUtils.isBlank((String) variable)) { + throwException( + pathCheck, + String.format( + EXPECT_INT_MSG, + extractCheckingPath(pathCheck.path()), + variable, + "empty string", + "Non Empty String")); } return true; }