ankitshokeen opened a new issue, #15321:
URL: https://github.com/apache/dubbo/issues/15321

   ### Pre-check
   
   - [x] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache Dubbo Component
   
   Java SDK (apache/dubbo)
   
   ### Dubbo Version
   
   **Component Affected**
   `dubbo-common`
   
   **Environment Details**
   Dubbo version: `3.3.4-SNAPSHOT`
   JDK version: `17`
   Operating System: `Windows 10`
   
   ### Steps to reproduce this issue
   
   **Steps to Reproduce**
   Call the method:
   `String result = StringUtils.toCommaDelimitedString(null, (String) null);`
   
   
   ### What you expected to happen
   
   **Expected Behavior**
   According to the method’s documentation, if either one or others is null, 
the method should return null. This behavior is expected to prevent invalid 
string construction from null values.
   
   **Actual Behavior**
   Instead of returning null, the method constructs a string: "null,null", 
which leads to unexpected results and causes a unit test failure in 
StringUtilsTest.
   `expected: <null> but was: <null,null>`
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [x] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: notifications-unsubscr...@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to