crossoverJie opened a new pull request, #1959: URL: https://github.com/apache/hertzbeat/pull/1959
## What's changed? The value may be null when `addCache -> removeCache`. It can be reproduced in this unit test. https://github.com/apache/hertzbeat/blob/78ca5aebf3423324050b58ac661dad4b8c567c6f/collector/src/test/java/org/apache/hertzbeat/collector/collect/redis/RedisClusterCollectImplTest.java#L70 Previously, because there was type checking, it did not trigger a npe. ## Checklist - [ ] I have read the [Contributing Guide](https://hertzbeat.apache.org/docs/community/code_style_and_quality_guide) - [ ] I have written the necessary doc or comment. - [ ] I have added the necessary unit tests and all cases have passed. ## Add or update API - [ ] I have added the necessary [e2e tests](https://github.com/apache/hertzbeat/tree/master/e2e) and all cases have passed. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
