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

Null check onto wrong property #399

Closed
dmitrymozheyko opened this issue Mar 9, 2021 · 0 comments · Fixed by #400
Closed

Null check onto wrong property #399

dmitrymozheyko opened this issue Mar 9, 2021 · 0 comments · Fixed by #400

Comments

@dmitrymozheyko
Copy link

version 0.11.0

photo_view_core.dart :
`
...
340 onTapUp: widget.onTapUp != null

341 ? (details) => widget.onTapUp!(context, details, value)

342 : null,

343 onTapDown: widget.onTapUp != null

344 ? (details) => widget.onTapDown!(context, details, value)

345 : null,

...
`
throws exception "Null check operator used on a null value" on line 344 if onTapUp is present, but onTapDown is null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant