NRE fix if passing a null url.