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 error handling in OperatorDistinctUntilChanged #3638

Merged

Conversation

davidmoten
Copy link
Collaborator

As per #3637, keySelector.call() was not wrapped in an appropriate try catch to prevent the error from being reported from an upstream operator.

This PR includes a unit test that failed on the original code.

@akarnokd
Copy link
Member

👍

@akarnokd akarnokd added the Bug label Jan 23, 2016
@artem-zinnatullin
Copy link
Contributor

👍

@@ -50,6 +53,15 @@ public String call(String s) {
return s.toUpperCase();
}
};

final Func1<String, String> THROWS_NON_FATAL = new Func1<String, String>() {
Copy link
Member

Choose a reason for hiding this comment

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

nit: not used

@davidmoten davidmoten force-pushed the fix-distinctUntilChanged-error-handling branch from a5910eb to 40cd517 Compare January 24, 2016 08:57
@davidmoten davidmoten force-pushed the fix-distinctUntilChanged-error-handling branch from 40cd517 to 300ab1e Compare January 24, 2016 09:00
@davidmoten
Copy link
Collaborator Author

Thanks @zsxwing, it was supposed to have been used and now is. Also made stuff private and static that could be. Commits squashed.

@zsxwing
Copy link
Member

zsxwing commented Jan 24, 2016

👍

akarnokd added a commit that referenced this pull request Jan 25, 2016
…or-handling

fix error handling in OperatorDistinctUntilChanged
@akarnokd akarnokd merged commit 05a4dee into ReactiveX:1.x Jan 25, 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.

4 participants