hanishakoneru opened a new pull request #297: URL: https://github.com/apache/incubator-ratis/pull/297
## What changes were proposed in this pull request? When a follower is in candidate state but unable to get votes and also unable to get new leader info, the JMXBeanServer query to getLeaderId can throw a NPE. ## What is the link to the Apache JIRA This happens because RaftServerJmxAdapter#getLeaderId() does not check whether leaderId is null before calling toString() on it. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
