yx91490 commented on a change in pull request #1214:
URL: 
https://github.com/apache/incubator-seatunnel/pull/1214#discussion_r805504009



##########
File path: 
seatunnel-common/src/main/java/org/apache/seatunnel/common/config/CheckConfigUtil.java
##########
@@ -72,6 +72,16 @@ public static CheckResult checkAtLeastOneExists(Config 
config, String... params)
         }
     }
 
+    public static boolean isInvalidParam(Config config, String param) {
+        boolean isInvalidParam = false;
+        if (!config.hasPath(param) || config.getAnyRef(param) == null) {

Review comment:
       as javadoc https://lightbend.github.io/config/latest/api/index.html 
says, it will return false:
   
   ```
   Checks whether a value is present and non-null at the given path. This 
differs in two ways from Map.containsKey() as implemented by 
[ConfigObject](https://lightbend.github.io/config/latest/api/com/typesafe/config/ConfigObject.html):
 it looks for a path expression, not a key; and it returns false for null 
values, while containsKey() returns true indicating that the object contains a 
null value for the key.
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to