fix bug: wher url is empty, cause SEGV