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

Unified Diff: pkg/analysis_server/lib/src/plugin/result_merger.dart

Issue 2696853002: Extract object creation methods for use by a future test class (Closed)
Patch Set: Created 3 years, 10 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
Index: pkg/analysis_server/lib/src/plugin/result_merger.dart
diff --git a/pkg/analysis_server/lib/src/plugin/result_merger.dart b/pkg/analysis_server/lib/src/plugin/result_merger.dart
index b9c28c17ffd72aa519d7da361d310435822255bd..b76656d1151ba0598c16c29985803e8efbd1363f 100644
--- a/pkg/analysis_server/lib/src/plugin/result_merger.dart
+++ b/pkg/analysis_server/lib/src/plugin/result_merger.dart
@@ -487,7 +487,7 @@ class ResultMerger {
bool isCopied = copiedOutline != null;
copiedOutline ??= outline;
List<Outline> currentChildren = copiedOutline.children;
- if (currentChildren.isEmpty) {
+ if (currentChildren == null || currentChildren.isEmpty) {
return outline;
}
List<Outline> updatedChildren =

Powered by Google App Engine
This is Rietveld 408576698