Fixing the null pointer exception is MyCrawler