You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] GeneralContextPlugin NPE on null cached handle #6657
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.
Activity
github-actions commentedon Aug 3, 2026
👋 Hello @Aias00
A new issue has been opened by @Aias00:
Please review when you have time. Thank you! 🙏
fix: guard the rule handle of the general context plugin (#6657) (#7167)
fix: guard the rule handle of the general context plugin (apache#6657) (