Catch url is null exception