Handled Null pointer exception for "URL" parameter in ResourceDo.