-
Notifications
You must be signed in to change notification settings - Fork 23
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
Fix incorrect non-null assertion #306
base: main
Are you sure you want to change the base?
Conversation
I believe `_target` can be `null` here.
mmm - I'm inclined to tighten this logic differently. I believe the intended invariant was to have 2 states for the event stream subscriptions:
One way to tighten this differently would be to make the constructor parameter stricter and only accept a non-null For reference - this non-null assertion has been in this logic not only here, but also in the equivalent logic we had in I'm curious - what scenario made you run into this issue, @mnordine? |
I agree, just not sure why it wasn't done like that in the first place.
I was looking into a stack trace generated from Sentry for our Dart web app that uses
So I started looking into it. I want to stress that the stacks generated from |
Do you by chance have access to the original |
Sorry, I don't have it. Will update here if I'm able to get it. |
I believe
_target
can benull
here.