Skip to content

2.x: Avoid potential NPE when onError throws. #4398

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

Merged
merged 1 commit into from
Aug 22, 2016
Merged

2.x: Avoid potential NPE when onError throws. #4398

merged 1 commit into from
Aug 22, 2016

Conversation

JakeWharton
Copy link
Contributor

t2 was only initialized if canceling threw an exception. In the happy path it would have never been initialized so when onError threw the call to suppress() would NPE.

t2 was only initialized if canceling threw an exception. In the happy path it would have never been initialized so when onError threw the call to suppress() would NPE.
@akarnokd akarnokd added the Bug label Aug 21, 2016
@akarnokd akarnokd added this to the 2.0 RC 1 milestone Aug 21, 2016
@codecov-io
Copy link

codecov-io commented Aug 21, 2016

Current coverage is 69.63% (diff: 0.00%)

Merging #4398 into 2.x will increase coverage by 0.01%

@@                2.x      #4398   diff @@
==========================================
  Files           448        448          
  Lines         31984      31986     +2   
  Methods           0          0          
  Messages          0          0          
  Branches       5107       5108     +1   
==========================================
+ Hits          22267      22273     +6   
+ Misses         7577       7574     -3   
+ Partials       2140       2139     -1   

Powered by Codecov. Last update e1cec33...eb2d3bd

@akarnokd akarnokd merged commit 5b8845d into ReactiveX:2.x Aug 22, 2016
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.

3 participants