Closed wcnnkh closed 3 years ago
If the first step is not executed during construction, the method calling the second step will throw a null pointer exception. Can you change it to:
public boolean isHealthy() { return isHeathly == null? false:isHeathly.booleanValue(); }
SGTM, feel free to send a PR.
Push to that branch?Master?
You won't be able to push to origin/master, need to fork and send a PR which I see you did.
Closed, see the PR response here for more details.
https://github.com/Netflix/eureka/blob/4d36f04849541df6c6b8738622544d1b26dfe8d4/eureka-core/src/main/java/com/netflix/eureka/util/StatusUtil.java#L59-L61
https://github.com/Netflix/eureka/blob/4d36f04849541df6c6b8738622544d1b26dfe8d4/eureka-core/src/main/java/com/netflix/eureka/util/StatusInfo.java#L105-L107