sergehuber commented on code in PR #754:
URL: https://github.com/apache/unomi/pull/754#discussion_r3252436706


##########
api/src/main/java/org/apache/unomi/api/conditions/Condition.java:
##########
@@ -123,7 +131,7 @@ public boolean containsParameter(String name) {
      * @return the value of the specified parameter or {@code null} if no such 
parameter exists
      */
     public Object getParameter(String name) {
-        return parameterValues.get(name);
+        return parameterValues != null ? parameterValues.get(name) : null;
     }

Review Comment:
   Fixed — the max-depth branch now uses the same keys as the normal path (id, 
type, multivalued, defaultValue with a "<max depth exceeded>" placeholder). See 
ParameterTest.testToYamlMaxDepthZeroIncludesExpectedKeys.



-- 
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