-
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
BlobModule supports invokes virtual method String.equals() on null #18709
Comments
Thanks for posting this! It looks like your issue may be missing some necessary information. Can you run Thank you for your contributions. |
An easy fix would be just to replace that line with
|
@shockdesign thanks for your reply! :D I found what is causing this error. |
has this been fixed now? |
@Brian-Azizi - no, not fixed. Current master still has the same issue. Original poster found a workaround for his specific instance of the problem and therefore closed it, but the problem still persists for the rest of us... |
Hi guys. Try to open Android studio and set a break point at this line and see where this 'null' comes from. Then you can go back to your react native code to fix it. |
I, for example, bump into this while calling |
Submitted the fix ^^ |
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 #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
Even using the fix, the problem persists here. Anyone else? |
same issue :( |
Same here. |
app breaks after upgrading to RN-0.54 due to exception in native call.
Environment
Environment:
OS: macOS High Sierra 10.13.4
Node: 9.7.1
Yarn: 1.3.2
npm: 5.8.0
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.1 AI-173.4670197
Packages: (wanted => installed)
react: ^16.3.0-alpha.1 => 16.3.0-alpha.3
react-native: 0.54.2 => 0.54.2
Steps to Reproduce
Expected Behavior
the app should not break
Actual Behavior
the line of code that break in
BlobModule
is:looks like it did not successfully get the
scheme
, which should be returned bygetScheme()
fromNetworkingModule
.Potential solution:
Add null-checking on
scheme
? #The text was updated successfully, but these errors were encountered: