Skip to content
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 crash when repl.mistate is defined but nothing #353

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

ExpandingMan
Copy link
Contributor

Don't really understand the change that was made as I didn't look into it, but suffice it to say it's possible for repl.mistate to be defined but nothing. In such a case it doesn't have the field interface and so OhMyREPL crashes on the next line. This adds a check for whether that field is nothing and does whatever it would do if it weren't defined. Not 100% confident this is the intended behavior but seems to work fine. I suspect that the isdefined(repl,:mistate) can be removed entirely, but I really don't know, so I left it in.

@KristofferC KristofferC merged commit c547f1c into KristofferC:master Jun 29, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants