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
{{ message }}
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
I observed this crash when I was working on screen transition animation logic setup on top of the Flow. After enabling Don't keep activities developer option in device settings, I tried to minimize application during transition animation and crash has occurred.
In my case I placed TraversalCallback::onTraversalCompleted method call inside of transition animation completion callback. This callback was fired after activity was destroyed and because of that node instance inside of KeyManager::decrementAndMaybeRemoveKey was null. So I received NPE when library was trying to access ManagedServices::uses field on a null value object instance.
The easiest fix that I've found for this issue is just to add null check for node variable inside of KeyManager::decrementAndMaybeRemoveKey method body: if(node == null) { return false; }.
Please let me know if I'm missing something here or if some other solution should be applied to fix this issue. I will appreciate for your help.
The text was updated successfully, but these errors were encountered:
This seems like an animation/lifecycle bug in the app. I think the animation should probably have been canceled when the activity paused, and your animation handler should have immediately completed the traversal.
I'm hesitant to add a null check because that could hide bugs (including this?).
I observed this crash when I was working on screen transition animation logic setup on top of the Flow. After enabling
Don't keep activities
developer option in device settings, I tried to minimize application during transition animation and crash has occurred.In my case I placed
TraversalCallback::onTraversalCompleted
method call inside of transition animation completion callback. This callback was fired after activity was destroyed and because of thatnode
instance inside ofKeyManager::decrementAndMaybeRemoveKey
was null. So I received NPE when library was trying to accessManagedServices::uses
field on a null value object instance.The easiest fix that I've found for this issue is just to add null check for
node
variable inside ofKeyManager::decrementAndMaybeRemoveKey
method body:if(node == null) { return false; }
.Please let me know if I'm missing something here or if some other solution should be applied to fix this issue. I will appreciate for your help.
The text was updated successfully, but these errors were encountered: