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

frog NPE when reporting missing arguments #794

Closed
DartBot opened this issue Dec 10, 2011 · 1 comment
Closed

frog NPE when reporting missing arguments #794

DartBot opened this issue Dec 10, 2011 · 1 comment
Labels
closed-duplicate Closed in favor of an existing report

Comments

@DartBot
Copy link

DartBot commented Dec 10, 2011

This issue was originally filed by [email protected]


Compiling this program will cause frog to NPE. (Problem seems to be trying to report span of arguments, but there are no arguments.)

void main() {
  foo();
}

void foo(int x) {
}
        ^
NullPointerException
    (TypeError: Cannot call method 'get$span' of undefined)
    at MethodMember.<anonymous> (/usr/local/google/home/mattsh/dart-code1/dart/frog/minfrog:5436:86)
    at MemberSet.<anonymous> (/usr/local/google/home/mattsh/dart-code1/dart/frog/minfrog:6083:35)
    at BareValue.<anonymous> (/usr/local/google/home/mattsh/dart-code1/dart/frog/minfrog:11878:19)
    at BareValue.invoke$4 (/usr/local/google/home/mattsh/dart-code1/dart/frog/minfrog:12138:15)
    at MethodGenerator.visitCallExpression (/usr/local/google/home/mattsh/dart-code1/dart/frog/minfrog:3435:19)
    at CallExpression.<anonymous> (/usr/local/google/home/mattsh/dart-code1/dart/frog/minfrog:10120:18)
    at MethodGenerator.visitValue (/usr/local/google/home/mattsh/dart-code1/dart/frog/minfrog:2963:20)
    at MethodGenerator.visitVoid (/usr/local/google/home/mattsh/dart-code1/dart/frog/minfrog:2981:15)
    at MethodGenerator.visitExpressionStatement (/usr/local/google/home/mattsh/dart-code1/dart/frog/minfrog:3353:20)
    at ExpressionStatement.<anonymous> (/usr/local/google/home/mattsh/dart-code1/dart/frog/minfrog:10071:18)

@dgrove
Copy link
Contributor

dgrove commented Dec 16, 2011

Added Duplicate label.
Marked as being merged into #775.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

2 participants