We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08bd966 commit 3be583aCopy full SHA for 3be583a
pkg/analyzer/lib/src/task/options.dart
@@ -281,7 +281,7 @@ class GenerateOptionsErrorsTask extends SourceBasedAnalysisTask {
281
initialIncludeSpan ??= span;
282
String includeUri = span.text;
283
Source includedSource = sourceFactory.resolveUri(source, includeUri);
284
- if (!includedSource.exists()) {
+ if (includedSource == null || !includedSource.exists()) {
285
errors.add(new AnalysisError(
286
initialSource,
287
initialIncludeSpan.start.column + 1,
0 commit comments