You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! First of all, i would like to thank you guys for this great library :)
Today I received the below exception:
type 'Null' is not a subtype of type '{The class type i registered}' in type cast
_ServiceFactory.dispose (package:get_it/get_it_impl.dart:124:43)
_Scope.reset (package:get_it/get_it_impl.dart:286:24)
_GetItImplementation.popScope (package:get_it/get_it_impl.dart:750:5)
I have a registered lazy singleton (in my authorized scope) in the dependency tree with a dispose method, and when i call the popScope (after user logout) i receive the above exception. The case is that as i'm using a lazysingleton there is no guarantee that the object will be created, but during popping the scope the _ServiceFactory.dispose will be called, and it will try to cast a Null object to the registered type at return disposeFunction?.call(instance as T); and this causes the exception.
The text was updated successfully, but these errors were encountered:
Hello! First of all, i would like to thank you guys for this great library :)
Today I received the below exception:
I have a registered lazy singleton (in my authorized scope) in the dependency tree with a dispose method, and when i call the popScope (after user logout) i receive the above exception. The case is that as i'm using a lazysingleton there is no guarantee that the object will be created, but during popping the scope the
_ServiceFactory.dispose
will be called, and it will try to cast a Null object to the registered type atreturn disposeFunction?.call(instance as T);
and this causes the exception.The text was updated successfully, but these errors were encountered: