-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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][BUGFIX][BlobModule] Switch equality check in BlobModule.java #18893
[ANDROID][BUGFIX][BlobModule] Switch equality check in BlobModule.java #18893
Conversation
… can be on a null object and return the correct result.
Generated by 🚫 dangerJS |
I think the right fix for it would be to throw a descriptive error or warning (after applying this fix), something like:
|
@thymikee The scheme passed in doesn't have to be legitimate as this would just be determining whether the Blob is remote or not, if it's not there, or doesn't match it isn't defined as |
Thanks! LGTM @facebook-github-bot shipit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@janicduplessis is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Summary: Switch the equality check to avoid crash on the first item. The check can be on a null object and return the correct result. Fixes #18709 Just a simple switch on equals, to make sure we're not bombing out by having a null scheme. No related PRs and does not require a document change. [ANDROID][BUGFIX][BlobModule] Switch equality check in BlobModule.java Closes #18893 Differential Revision: D7658036 Pulled By: hramos fbshipit-source-id: db61b98dae178dbbb645070f7b0d73ab43d30541
Summary: Switch the equality check to avoid crash on the first item. The check can be on a null object and return the correct result. Fixes facebook#18709 Just a simple switch on equals, to make sure we're not bombing out by having a null scheme. No related PRs and does not require a document change. [ANDROID][BUGFIX][BlobModule] Switch equality check in BlobModule.java Closes facebook#18893 Differential Revision: D7658036 Pulled By: hramos fbshipit-source-id: db61b98dae178dbbb645070f7b0d73ab43d30541
Switch the equality check to avoid crash on the first item. The check can be on a null object and return the correct result.
Fixes #18709
Test Plan
Just a simple switch on equals, to make sure we're not bombing out by having a null scheme.
Related PRs
No related PRs and does not require a document change.
Release Notes
[ANDROID][BUGFIX][BlobModule] Switch equality check in BlobModule.java