| 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 616460e32b4614995fafd5b2ba8f2c9ec7ee5bc0..47db7a312a85a2fab8231e9841c15c00f45666a2 100644
|
| --- a/pkg/analysis_server/lib/src/context_manager.dart
|
| +++ b/pkg/analysis_server/lib/src/context_manager.dart
|
| @@ -301,7 +301,14 @@ abstract class ContextManager {
|
| if (info.excludesResource(folder) || folder.shortName.startsWith('.')) {
|
| return;
|
| }
|
| - List<Resource> children = folder.getChildren();
|
| + List<Resource> children = null;
|
| + try {
|
| + children = folder.getChildren();
|
| + } on FileSystemException {
|
| + // The directory either doesn't exist or cannot be read. Either way, there
|
| + // are no children that need to be added.
|
| + return;
|
| + }
|
| for (Resource child in children) {
|
| String path = child.path;
|
| // ignore excluded files or folders
|
|
|