aiceflower opened a new issue, #5371: URL: https://github.com/apache/linkis/issues/5371
### Search before asking - [x] I had searched in the [issues](https://github.com/apache/linkis/issues) and found no similar issue. ### Linkis Component - [ ] linkis-commons - [x] linkis-computation-governance - [ ] linkis-dist - [ ] linkis-engineconn-plugin - [ ] linkis-extensions - [ ] linkis-orchestrator - [ ] linkis-public-enhancements - [ ] linkis-spring-cloud-services - [ ] linkis-web ### Description Null pointer exception occurs when updating metrics during engine creation and reuse. ### Steps to reproduce 1. Create or reuse an engineconn 2. Metrics update is triggered 3. NPE occurs when metrics object is null ### Expected behavior Should handle null metrics gracefully without throwing NPE. ### Are you willing to submit a PR? - [x] Yes I am willing to submit a PR! -- 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]
