You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing the following error on my android emulator SDK version 22 with no SDCard.
[Mon Apr 26 2021 15:02:20.360] ERROR Error: Exception in HostObject::get(propName:ReactNativeBlobUtil): java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
[Mon Apr 26 2021 15:02:20.360] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
[Mon Apr 26 2021 15:02:20.370] ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
It appears to be an issue with the code in ReactNativeBlobUtilFS.java file line 264 or 281 and I believe it's the same as this stackoverflow. https://stackoverflow.com/a/20548378
The text was updated successfully, but these errors were encountered:
Having the same issue appear on several bug reports in production.
I'm accessing the DocumentDir, but idk if it is related exactly to that or just that if it happens to be the case where any of the externalFilesDir returns null.
The easiest solution would be to wrap everything on a try-catch and return an empty response here or reject the promise here.
But the better solution would be to check every getExternalFilesDir for a null value before calling getAbsolutePath() (java doesn't have optional chaining, right?) and return an empty value if its null.
I'm seeing the following error on my android emulator SDK version 22 with no SDCard.
It appears to be an issue with the code in
ReactNativeBlobUtilFS.java
file line 264 or 281 and I believe it's the same as this stackoverflow.https://stackoverflow.com/a/20548378
The text was updated successfully, but these errors were encountered: