You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "Aias00 (via GitHub)" <gi...@apache.org> on 2026/08/03 01:11:42 UTC

[I] [BUG] SubscribeRepository.remove(topics, channel) NPE on absent topic [shenyu]

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: notifications-unsubscribe@shenyu.apache.org.apache.org

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


Re: [I] [BUG] SubscribeRepository.remove(topics, channel) NPE on absent topic [shenyu]

Posted by "wy471x (via GitHub)" <gi...@apache.org>.
wy471x commented on issue #6745:
URL: https://github.com/apache/shenyu/issues/6745#issuecomment-5311802823

   /assign


-- 
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-unsubscribe@shenyu.apache.org

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


Re: [I] [BUG] SubscribeRepository.remove(topics, channel) NPE on absent topic [shenyu]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6745:
URL: https://github.com/apache/shenyu/issues/6745#issuecomment-5161311784

   👋 Hello @Aias00
   
   A new issue has been opened by @Aias00:
   - **Title**: [BUG] SubscribeRepository.remove(topics, channel) NPE on absent topic
   - **Link**: https://github.com/apache/shenyu/issues/6745
   
   Please review when you have time. Thank you! 🙏


-- 
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-unsubscribe@shenyu.apache.org

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


Re: [I] [BUG] SubscribeRepository.remove(topics, channel) NPE on absent topic [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 closed issue #6745: [BUG] SubscribeRepository.remove(topics, channel) NPE on absent topic
URL: https://github.com/apache/shenyu/issues/6745


-- 
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-unsubscribe@shenyu.apache.org

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