avoid NPE in URL.set when file is null
Merge pull request #244 from dicej/url-set

avoid NPE in URL.set when file is null