#4578 avoid hibernate join on inode
#4578 avoid possible npe