Index: pkg/analyzer/lib/src/context/cache.dart |
diff --git a/pkg/analyzer/lib/src/context/cache.dart b/pkg/analyzer/lib/src/context/cache.dart |
index 38d7d1c372bd18959f309585693d6eb65b8dff48..50207ac95b5a18b77c1fe57c02a60f4de4fdbce1 100644 |
--- a/pkg/analyzer/lib/src/context/cache.dart |
+++ b/pkg/analyzer/lib/src/context/cache.dart |
@@ -779,10 +779,8 @@ class CacheEntry { |
AnalysisCache cache = caches[j]; |
CacheEntry entry = cache.get(dependedOnResult.target); |
if (entry != null) { |
- ResultData data = entry.getResultDataOrNull(dependedOnResult.result); |
- if (data != null) { |
- data.dependentResults.add(thisResult); |
- } |
+ ResultData data = entry.getResultData(dependedOnResult.result); |
+ data.dependentResults.add(thisResult); |
} |
} |
} |