yunlongn opened a new pull request, #5578: URL: https://github.com/apache/shenyu/pull/5578
<!-- Describe your PR here; e.g. Fixes #issueNo --> Steps To Reproduce On the master branch, run the test case code. ``` public static void main(final String[] args) { EurekaInstanceRegisterRepository eurekaInstanceRegisterRepository = new EurekaInstanceRegisterRepository(); RegisterConfig config = new RegisterConfig(); config.setServerLists("http://localhost:8761/eureka/"); eurekaInstanceRegisterRepository.init(config); InstanceEntity instanceEntity = new InstanceEntity("shenyu", "127.0.0.1", 12345); eurekaInstanceRegisterRepository.selectInstances("other name"); eurekaInstanceRegisterRepository.persistInstance(instanceEntity); while (true) { try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } } } ``` error log: ``` Exception in thread "main" java.lang.NullPointerException at org.apache.shenyu.registry.eureka.EurekaInstanceRegisterRepository.getInstances(EurekaInstanceRegisterRepository.java:185) at org.apache.shenyu.registry.eureka.EurekaInstanceRegisterRepository.selectInstances(EurekaInstanceRegisterRepository.java:181) at org.apache.shenyu.registry.eureka.EurekaInstanceRegisterRepository.main(EurekaInstanceRegisterRepository.java:73) ``` <!-- Thank you for proposing a pull request. This template will guide you through the essential steps necessary for a pull request. --> Make sure that: - [x] You have read the [contribution guidelines](https://shenyu.apache.org/community/contributor-guide). - [x] You submit test cases (unit or integration tests) that back your changes. - [x] Your local test passed `./mvnw clean install -Dmaven.javadoc.skip=true`. -- 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: notifications-unsubscr...@shenyu.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org