| Index: compiler/java/com/google/dart/compiler/UrlLibrarySource.java
|
| ===================================================================
|
| --- compiler/java/com/google/dart/compiler/UrlLibrarySource.java (revision 6614)
|
| +++ compiler/java/com/google/dart/compiler/UrlLibrarySource.java (working copy)
|
| @@ -29,6 +29,9 @@
|
|
|
| @Override
|
| public DartSource getSourceFor(final String relPath) {
|
| + if (relPath == null || relPath.isEmpty()) {
|
| + return null;
|
| + }
|
| try {
|
| // Force the creation of an escaped relative URI to deal with spaces, etc.
|
| URI uri = getUri().resolve(new URI(null, null, relPath, null)).normalize();
|
| @@ -40,6 +43,9 @@
|
|
|
| @Override
|
| public LibrarySource getImportFor(String relPath) {
|
| + if (relPath == null || relPath.isEmpty()) {
|
| + return null;
|
| + }
|
| try {
|
| // Force the creation of an escaped relative URI to deal with spaces, etc.
|
| URI uri = getUri().resolve(new URI(null, null, relPath, null)).normalize();
|
|
|