Content-Length: 262584 | pFad | http://github.com/jruby/jruby/pull/8644

F2 Check if tmpStream is null to avoid a NullPointerException. by nabice · Pull Request #8644 · jruby/jruby · GitHub
Skip to content

Check if tmpStream is null to avoid a NullPointerException. #8644

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nabice
Copy link

@nabice nabice commented Feb 20, 2025

In JDK versions higher than 9, tmpStream always returns null. Reducing the use of exceptions can decrease resource consumption.

@headius
Copy link
Member

headius commented Mar 12, 2025

Good catch!

@headius
Copy link
Member

headius commented Mar 12, 2025

Could you rebase this against the jruby-9.4 branch please? The main branch has moved on to JRuby 10 work now and we should fix this in 9.4 as well.

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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/jruby/jruby/pull/8644

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy