Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Bug fix: only edit state in txLog when we have an initial state #5919

Merged
merged 1 commit into from Feb 22, 2023

Conversation

eggplantzzz
Copy link
Contributor

Attempting to use this utility with the debugger in light mode resulted in a crash. We tracked this down in the debugger, it crashed at this line. Apparently in light mode, this tx log tracking is not enabled and will make initialState null which in turn will cause things to crash. This PR fixes this by only updating state when we receive a value for initialState.

Copy link
Member

@cds-amal cds-amal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, no breaking according to some manual resetting tests.

@eggplantzzz eggplantzzz merged commit 0950040 into develop Feb 22, 2023
@eggplantzzz eggplantzzz deleted the bug-bug branch February 22, 2023 16:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants