Inspired by ZK-3006 , I develop a simple static analysis tool to find other Potential NPE like ZK-3006. This bug is found by this tool ,and I have carefully studied it. But i am a newbie at here so i may be wrong, hope someone could confirm it and help me improve this tool.
class NIOServerCnxn has three method :getSocketAddress,getRemoteSocketAddress can return null just like :
some of their caller give null checker, some(total 3 list in below) are not.
I think we should add null check in above three caller .