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

   - severity: High
   - files: 
`shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-rpc/shenyu-plugin-general-context/src/main/java/org/apache/shenyu/plugin/general/context/GeneralContextPlugin.java:54`
   - description: `doExecute` calls 
`obtainHandle(CacheKeyUtils.INST.getKey(rule))` and immediately dereferences 
`.isEmpty()` without a null check. `CommonHandleCache.obtainHandle` returns 
`null` on cache miss. Every other plugin in this set (ContextPathPlugin:55, 
RewritePlugin:68, etc.) guards with `Objects.isNull(handle)` before use; 
GeneralContextPlugin is the sole exception.
   - impact: NullPointerException at runtime — request fails with 500 instead 
of passing through the chain.
   - suggested_fix: Add `if (Objects.isNull(generalContextHandleMap) || 
generalContextHandleMap.isEmpty()) { return chain.execute(exchange); }` before 
line 54.
   - confidence: High
   - related_existing: none
   
   ---
   _Identified during the 2026-08-02 deep re-scan; full list in 
[`docs/scan2-2026-08-02/00-consolidated-critical-high.md`](docs/scan2-2026-08-02/00-consolidated-critical-high.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