Closed ddxl123 closed 10 months ago
Thanks for your report.
The Null check operator used on a null value
error was thrown by the interceptor you created (in your code). The error message you posted above seems to indicate an error in the back_button_interceptor
package because I was catching the error and then throwing it after the async gap with throw error
, which doesn't show the correct stacktrace. At the time I created that code, that was the only way to do it.
Recently, a new method Error.throwWithStackTrace(error, stackTrace))
became available, so I just published a new package version that throws the error with the correct stacktrace.
Please update the package to this new version:
back_button_interceptor : ^7.0.0
And then run your code again. This time, you will get the correct stacktrace that shows where in your code is the problem.
I am closing this issue, but please feel free to ask follow up questions if you need.
back_button_interceptor: ^6.0.2
doctor