null check on uri