handle null urls