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: check that condition is defined before we access it #1701

Merged
merged 1 commit into from
Jan 25, 2023

Conversation

Just-Sieb
Copy link
Contributor

This fixes an error we are running into. In our code base we have a system that will mock out dependencies. However it iterates over props to stub out functions. In this process it accesses this getter property. Before connect is called this getter tries to access this.condition which is undefined so accessing the property of it causes a crash in ioredis. This handles that case so ioredis does not try to access property subscriber of undefined.

@luin luin merged commit 0c0ec30 into redis:main Jan 25, 2023
@github-actions
Copy link

🎉 This PR is included in version 5.2.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants