guyinyou opened a new pull request, #1268:
URL: https://github.com/apache/rocketmq-clients/pull/1268

   The original condition `null != body || body.Length == 0` had two bugs:
   - When body is null, it short-circuits to evaluating `body.Length`, causing 
NullReferenceException instead of a proper ArgumentException.
   - When body is a non-null empty array (byte[0]), `null != body` is true, so 
the empty body passes validation silently.
   
   Fix to `null != body && body.Length > 0`, consistent with the Java 
implementation which uses `ArrayUtils.isNotEmpty(body)`.


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