The GitHub Actions job "Golang Coverage" on rocketmq-clients.git/master has 
failed.
Run started by GitHub user RongtongJin (triggered by RongtongJin).

Head commit for run:
c46bc3faa381a796b526205fbda0cb79130893f0 / guyinyou 
<[email protected]>
[C#] Fix SetBody validation logic to correctly reject null and empty body 
(#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)`.

Co-authored-by: guyinyou <[email protected]>

Report URL: https://github.com/apache/rocketmq-clients/actions/runs/27331668387

With regards,
GitHub Actions via GitBox

Reply via email to