Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dartanalyzer NPE: "NoSuchMethodError: The getter 'isSynthetic' was called on null." #29812

Closed
isoos opened this issue Jun 7, 2017 · 6 comments
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@isoos
Copy link

isoos commented Jun 7, 2017

To reproduce, run the dartanalyzer on https://github.com/dart-lang/glob/blob/master/test/list_test.dart

Unhandled exception:
NoSuchMethodError: The getter 'isSynthetic' was called on null.
Receiver: null
Tried calling: isSynthetic
#0      Object._noSuchMethod (dart:core-patch/object_patch.dart:43)
#1      Object.noSuchMethod (dart:core-patch/object_patch.dart:47)
#2      _IndexContributor.recordRelationOffset (package:analyzer/src/dart/analysis/index.dart:448)
#3      _IndexContributor.recordRelation (package:analyzer/src/dart/analysis/index.dart:413)
#4      _IndexContributor.visitSimpleIdentifier (package:analyzer/src/dart/analysis/index.dart:683)
#5      SimpleIdentifierImpl.accept (package:analyzer/src/dart/ast/ast.dart:9413)
#6      LabelImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:6938)
#7      GeneralizingAstVisitor.visitNode (package:analyzer/dart/ast/visitor.dart:431)
#8      GeneralizingAstVisitor.visitLabel (package:analyzer/dart/ast/visitor.dart:386)
#9      LabelImpl.accept (package:analyzer/src/dart/ast/ast.dart:6934)
@bwilkerson bwilkerson added area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Jun 7, 2017
@bwilkerson
Copy link
Member

@scheglov The only labels in the source are for named arguments. Any idea what might be causing this?

@kevmoo
Copy link
Member

kevmoo commented Jun 7, 2017

@isoos – which version of the SDK?

@scheglov
Copy link
Contributor

scheglov commented Jun 7, 2017

I cannot reproduce it.
I suspect this might have been fixed in a73c8d0.

@bwilkerson
Copy link
Member

I thought that might be the case.

@isoos Please let us know if you continue to see this after upgrading to the next dev or stable release.

@kevmoo
Copy link
Member

kevmoo commented Jun 7, 2017

@isoos I haven't seen this is my runs, either – and I'm on 1.24-latest-dev

@isoos
Copy link
Author

isoos commented Jun 7, 2017

FWIW it was in SDK 1.23.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. P1 A high priority bug; for example, a single project is unusable or has many test failures type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

4 participants