| Index: compiler/java/com/google/dart/compiler/DartCompiler.java
|
| diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| index 5cb4e5213a0a36d4fd2e9c42c09a260772258ad6..6900a507d630e9db99ed3276d80327399a25e845 100644
|
| --- a/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| +++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
|
| @@ -408,10 +408,14 @@ public class DartCompiler {
|
| throws IOException {
|
| String libSpec = libNode.getText();
|
| LibrarySource dep;
|
| - if (PackageLibraryManager.isDartSpec(libSpec)) {
|
| - dep = context.getSystemLibraryFor(libSpec);
|
| - } else {
|
| - dep = libSrc.getImportFor(libSpec);
|
| + try {
|
| + if (PackageLibraryManager.isDartSpec(libSpec)) {
|
| + dep = context.getSystemLibraryFor(libSpec);
|
| + } else {
|
| + dep = libSrc.getImportFor(libSpec);
|
| + }
|
| + } catch (Throwable e) {
|
| + return null;
|
| }
|
| if (dep == null || !dep.exists()) {
|
| return null;
|
|
|