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

Fixing a bug and a potential for other concurrency issues. #1552

Merged
merged 1 commit into from
Aug 8, 2014

Conversation

abersnaze
Copy link
Contributor

Fix for #1542.

the root cause of the issue was this line of code where it was casting the notification list object to T.

        private T getRecentValue() {
            return (T)value;
        }

While I was in there I noticed that is was a race condition between calling hasNext() and next() on the Iterator.

@cloudbees-pull-request-builder

RxJava-pull-requests #1467 SUCCESS
This pull request looks good

@benjchristensen
Copy link
Member

Thanks @abersnaze

benjchristensen added a commit that referenced this pull request Aug 8, 2014
Fixing a bug and a potential for other concurrency issues.
@benjchristensen benjchristensen merged commit 03fe25c into ReactiveX:master Aug 8, 2014
@abersnaze abersnaze deleted the most-recent-null branch August 13, 2014 18:08
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.

3 participants