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

Unified Diff: pkg/analysis_server/lib/src/context_manager.dart

Issue 994723002: Fix for issue 22733 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698