Aias00 opened a new issue, #6745:
URL: https://github.com/apache/shenyu/issues/6745

   - severity: Medium
   - files: 
`shenyu-protocol/shenyu-protocol-mqtt/src/main/java/org/apache/shenyu/protocol/mqtt/repositories/SubscribeRepository.java:74-76`
   - description: `TOPIC_CHANNEL_FACTORY.get(topic).remove(channel)` 
dereferences the `get` result. `ConcurrentHashMap.get` returns null for an 
absent topic → NPE in the ForkJoinPool worker.
   - impact: Unsubscribe from absent topics throws NPE; client never receives 
UNSUBACK.
   - suggested_fix: Use `getOrDefault(topic, Collections.emptyList())` or 
null-check.
   - confidence: High
   - related_existing: none
   
   ---
   _Identified during the 2026-08-02 deep re-scan; full list in 
[`docs/scan2-2026-08-02/06-medium-tiers.md`](docs/scan2-2026-08-02/06-medium-tiers.md)._


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