our tool reported a NULL pointer dereference, but I don't sure the thing,
I am wondering under what situation that we can assure the extern CChain chainActive; in validation.h has more than one element? (doesn't need NULL checking after chainActive.Tip())
one of the reported locations: mining.cpp#L504
while (chainActive.Tip()->GetBlockHash() == hashWatchedChain && IsRPCRunning())