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 null pointer exception when Node.js stream is destroyed #2530

Merged
merged 1 commit into from
Aug 4, 2021

Conversation

armanbilge
Copy link
Member

No description provided.

Comment on lines -206 to +209
.complete(js.JavaScriptException(err))
.complete(
Option(err)
.fold[Exception](new StreamDestroyedException)(js.JavaScriptException(_))
)
Copy link
Member Author

Choose a reason for hiding this comment

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

err may be null, causing a null pointer exception when trying to render the JavaScriptException

@mpilquist mpilquist merged commit ae3483c into typelevel:main Aug 4, 2021
armanbilge added a commit to armanbilge/fs2 that referenced this pull request Aug 4, 2021
mpilquist added a commit that referenced this pull request Aug 4, 2021
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