fixes #1186

fixes NPE for Invalidating NearCache