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

NPE in ConstantVisitor._getConstantValue #35241

Closed
jelly-cai opened this issue Nov 22, 2018 · 2 comments
Closed

NPE in ConstantVisitor._getConstantValue #35241

jelly-cai opened this issue Nov 22, 2018 · 2 comments
Assignees
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

@jelly-cai
Copy link

Analyzer Feedback from IntelliJ

Version information

  • IDEA AI-181.5540.7.32.5056338
  • 2.1.0-edge.bf26f760b1bb3d5fea6bda110f6a17b590364120
  • AI-181.5540.7.32.5056338, JRE 1.8.0_152-release-1136-b06x64 JetBrains s.r.o, OS Windows 7(amd64) v6.1 Service Pack 1, screens 1920x1080, 1920x1080

Exception

Please append the contents of:
file://C:\Users\Administrator.USER-20180228II\AppData\Local\Temp\report.txt

Dart analysis server, SDK version 2.1.0-edge.bf26f760b1bb3d5fea6bda110f6a17b590364120, server version 1.20.5, error: Analysis failed: C:\Users\Administrator.USER-20180228II\AndroidStudioProjects\flutter_v2ex\lib\html\html_widget.dart context: exception_20181122_153926_096
NoSuchMethodError: The getter 'value' was called on null.
Receiver: null
Tried calling: value
#0      Object.noSuchMethod (dart:core/runtime/libobject_patch.dart:50:5)
#1      ConstantVisitor._getConstantValue (package:analyzer/src/dart/constant/evaluation.dart:1519:51)
#2      ConstantVisitor.visitPrefixedIdentifier (package:analyzer/src/dart/constant/evaluation.dart:1395:12)
#3      PrefixedIdentifierImpl.accept (package:analyzer/src/dart/ast/ast.dart:9033:49)
#4      ConstantVerifier._validateFieldInitializers (package:analyzer/src/dart/constant/constant_verifier.dart:547:49)
#5      ConstantVerifier.visitConstructorDeclaration (package:analyzer/src/dart/constant/constant_verifier.dart:109:7)
#6      ConstructorDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:2932:15)
#7      NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:8324:20)
#8      ClassDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1781:13)
#9      R
@vsmenon vsmenon added the area-analyzer Use area-analyzer for Dart analyzer issues, including the analysis server and code completion. label Nov 29, 2018
@stereotype441 stereotype441 changed the title unknow exception NPE in ConstantVisitor._getConstantValue Nov 29, 2018
@stereotype441 stereotype441 added P2 A bug or feature request we're likely to work on type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Nov 29, 2018
@stereotype441 stereotype441 added P1 A high priority bug; for example, a single project is unusable or has many test failures and removed P2 A bug or feature request we're likely to work on labels Nov 30, 2018
@scheglov scheglov self-assigned this Dec 4, 2018
@scheglov
Copy link
Contributor

scheglov commented Dec 4, 2018

@scheglov scheglov closed this as completed Dec 4, 2018
@scheglov scheglov reopened this Dec 4, 2018
@scheglov
Copy link
Contributor

scheglov commented Dec 4, 2018

@scheglov scheglov closed this as completed Dec 5, 2018
dart-bot pushed a commit that referenced this issue Dec 5, 2018
…ot have initializer.

R=brianwilkerson@google.com

Bug: #35241
Change-Id: I406a44467bf3ed2463e8a24c52c45e228c9b6dfa
Reviewed-on: https://dart-review.googlesource.com/c/86100
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
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