Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Follower.java
public long getZxid() { try { synchronized (fzk) { return fzk.getZxid(); } } catch (NullPointerException e) { LOG.warn("error getting zxid", e); } return -1; }
I traced the code and there is no reason to catch a NPE here. Add additional restrictions to make sure NPE will never happen.
Attachments
Issue Links
- links to