Fixed the null object error after failed network event.