|
|
@@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
* Copyright 2003-2004 The Apache Software Foundation |
|
|
|
* Copyright 2003-2005 The Apache Software Foundation |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
@@ -106,6 +106,7 @@ public final class Locator { |
|
|
|
try { |
|
|
|
url = new URL(uri); |
|
|
|
} catch (MalformedURLException emYouEarlEx) { |
|
|
|
// Ignore malformed exception |
|
|
|
} |
|
|
|
if (url == null || !("file".equals(url.getProtocol()))) { |
|
|
|
throw new IllegalArgumentException("Can only handle valid file: URIs"); |
|
|
|