forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Flow analysis is not available outside of function bodies and initial…
…izers. This fixes a group of crashes during fuzz testing. FAILURE: z({=?[ [NoSuchMethodError: The getter 'flow' was called on null. Receiver: null Tried calling: flow #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5) flutter#1 ResolverVisitor.startNullAwareIndexExpression (package:analyzer/src/generated/resolver.dart:743:21) flutter#2 ResolverVisitor.visitIndexExpression (package:analyzer/src/generated/resolver.dart:1552:5) flutter#3 IndexExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:5993:49) flutter#4 AstResolver.resolve (package:analyzer/src/summary2/ast_resolver.dart:85:10) #5 DefaultValueResolver._parameter (package:analyzer/src/summary2/default_value_resolver.dart:107:18) flutter#6 DefaultValueResolver._parameters (package:analyzer/src/summary2/default_value_resolver.dart:121:7) flutter#7 DefaultValueResolver._function (package:analyzer/src/summary2/default_value_resolver.dart:89:5) flutter#8 DefaultValueResolver.resolve (package:analyzer/src/summary2/default_value_resolver.dart:47:9) flutter#9 LibraryBuilder.resolveDefaultValues (package:analyzer/src/summary2/library_builder.dart:313:43) flutter#10 Linker._resolveDefaultValues (package:analyzer/src/summary2/link.dart:230:15) flutter#11 Linker._buildOutlines (package:analyzer/src/summary2/link.dart:89:5) flutter#12 Linker.link (package:analyzer/src/summary2/link.dart:69:5) flutter#13 link (package:analyzer/src/summary2/link.dart:33:10) Change-Id: I6145a1f728d432be8d0fa55235858e091030461c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175187 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
- Loading branch information
1 parent
ce74d6e
commit c9854e3
Showing
5 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters