Skip to content

Commit

Permalink
Guard against null base URL (i.e. when passed from ModuleSourceProvid…
Browse files Browse the repository at this point in the history
…er.loadSource())
  • Loading branch information
szegedi committed Jul 7, 2011
1 parent 496bb52 commit ab9037d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ protected ModuleSource loadFromUri(URI uri, URI base, Object validator)
protected ModuleSource loadFromActualUri(URI uri, URI base, Object validator)
throws IOException
{
final URL url = new URL(base.toURL(), uri.toString());
final URL url = new URL(base == null ? null : base.toURL(), uri.toString());
final long request_time = System.currentTimeMillis();
final URLConnection urlConnection = openUrlConnection(url);
final URLValidator applicableValidator;
Expand Down

0 comments on commit ab9037d

Please sign in to comment.