| Index: pkg/analysis_server/lib/src/context_manager.dart
|
| diff --git a/pkg/analysis_server/lib/src/context_manager.dart b/pkg/analysis_server/lib/src/context_manager.dart
|
| index 29de8df6ea696817cbc3f0694d3b126e4dbc5287..8af64b3f40d93bef9ec327223660860c200bfc75 100644
|
| --- a/pkg/analysis_server/lib/src/context_manager.dart
|
| +++ b/pkg/analysis_server/lib/src/context_manager.dart
|
| @@ -259,7 +259,14 @@ abstract class ContextManager {
|
| if (info.excludesResource(folder)) {
|
| return;
|
| }
|
| - List<Resource> children = folder.getChildren();
|
| + List<Resource> children;
|
| + try {
|
| + children = folder.getChildren();
|
| + } on FileSystemException catch (exception) {
|
| + // The folder no longer exists, or cannot be read, to there's nothing to
|
| + // do.
|
| + return;
|
| + }
|
| for (Resource child in children) {
|
| String path = child.path;
|
| // add files, recurse into folders
|
|
|