Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: compiler/java/com/google/dart/runner/BundleLibrarySource.java

Issue 9420011: Issue 1548. If URI can not be parsed, return null. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: compiler/java/com/google/dart/runner/BundleLibrarySource.java
diff --git a/compiler/java/com/google/dart/runner/BundleLibrarySource.java b/compiler/java/com/google/dart/runner/BundleLibrarySource.java
index 4b2f62b1fc9e301b71d83a9e84952eea295d5d63..6bfb401d555dc060114243d9513c6cfc42a2a174 100644
--- a/compiler/java/com/google/dart/runner/BundleLibrarySource.java
+++ b/compiler/java/com/google/dart/runner/BundleLibrarySource.java
@@ -38,20 +38,20 @@ class BundleLibrarySource extends UrlSource implements LibrarySource {
}
@Override
- public LibrarySource getImportFor(String filename) {
+ public LibrarySource getImportFor(String relPath) {
try {
- return new BundleLibrarySource(loader, basePath, filename);
+ return new BundleLibrarySource(loader, basePath, relPath);
} catch (URISyntaxException e) {
- throw new AssertionError();
+ return null;
}
}
@Override
- public DartSource getSourceFor(final String relPath) {
+ public DartSource getSourceFor(String relPath) {
try {
return new BundleDartSource(loader, basePath, relPath);
} catch (URISyntaxException e) {
- throw new AssertionError(e);
+ return null;
}
}

Powered by Google App Engine
This is Rietveld 408576698