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

[Android] Fix EQ and NEQ operators. #498

Merged
merged 3 commits into from
Dec 17, 2019
Merged

[Android] Fix EQ and NEQ operators. #498

merged 3 commits into from
Dec 17, 2019

Conversation

Szymon20000
Copy link
Contributor

Related to: #495

Copy link
Member

@jakub-gonet jakub-gonet left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

Copy link
Member

@jakub-gonet jakub-gonet left a comment

Choose a reason for hiding this comment

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

One more thing, could you also update NEQ node?
android/src/main/java/com/swmansion/reanimated/nodes/OperatorNode.java#216

@wcandillon
Copy link
Contributor

Could the tests from #495 be added to this PR?

@Szymon20000 Szymon20000 changed the title [Android] Fix EQ operator. [Android] Fix EQ and NEQ operators. Dec 13, 2019
…ode.java

Co-Authored-By: Jakub <jakub.gonet@swmansion.com>
@osdnk osdnk merged commit 59bd121 into master Dec 17, 2019
@osdnk osdnk deleted the @szymon/fix_eq branch December 17, 2019 17:51
osdnk added a commit that referenced this pull request Jan 15, 2020
Fixes regression made by 59bd121

Closes #551

We have observed that while evaluating neq or eq, the second param might be null. After #498 it started causing NullPointerException so I made a special check for that. Additionally, I allowed the first param to be nullable 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.

4 participants