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

Unified Diff: pkg/analyzer/lib/src/dart/sdk/patch.dart

Issue 2651673016: Ignore missing entries in patching map (Closed)
Patch Set: Created 3 years, 11 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/analyzer/lib/src/dart/sdk/patch.dart
diff --git a/pkg/analyzer/lib/src/dart/sdk/patch.dart b/pkg/analyzer/lib/src/dart/sdk/patch.dart
index 44f6765ddfc3be2fcfa0f36977d6bb8868cac162..ee0caa2ddcea4387e0bbc8c0a09e9f70c232d3f2 100644
--- a/pkg/analyzer/lib/src/dart/sdk/patch.dart
+++ b/pkg/analyzer/lib/src/dart/sdk/patch.dart
@@ -51,7 +51,7 @@ class SdkPatcher {
_allowNewPublicNames = libraryName == '_internal';
}
// Prepare the patch files to apply.
- List<String> patchPaths = allPatchPaths[libraryUriStr];
+ List<String> patchPaths = allPatchPaths[libraryUriStr] ?? const <String> [];
for (String path in patchPaths) {
File patchFile = resourceProvider.getFile(path);
« 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