Aias00 opened a new issue, #6706: URL: https://github.com/apache/shenyu/issues/6706
- severity: Medium - files: `shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/InstanceCheckService.java:145-167, 206-211, 213-243` - description: `instance.getInstanceState()` is an `Integer`. `doCheck` uses `InstanceStatusEnum.ONLINE.getCode() == instance.getInstanceState()` — when `getCode()` is `int`, the `Integer` is unboxed; if `instanceState` is null this is an NPE. `collectStateData` (208) and `getInstanceDataVisual` (219) also use `Collectors.groupingBy(InstanceInfoVO::getInstanceState, ...)` which throws NPE on null keys. - impact: A single instance with null state crashes the scheduled `doCheck` (caught and logged, so all instance state tracking silently stalls for that cycle). - suggested_fix: Normalize null state to a default code when loading; guard unboxing with explicit null checks. - confidence: Medium - 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]
