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] Could not load image exif data adding the option includeExtra: true #1874

Closed
jacruzca opened this issue Nov 16, 2021 · 1 comment · Fixed by #1885
Closed
Assignees

Comments

@jacruzca
Copy link

Description

On Android, I'm getting the following error in logcat after selecting an image. I added the option includeExtra: true

Could not load image exif data: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference

iOS works fine.

How to repeat issue and example

  • I used a real device, not a simulator. Not sure if it happens in a simulator as well.
  • Run launchImageLibrary on Android with these options:
    mediaType: 'photo',
    quality: 0.8,
    maxWidth: MAX_IMAGE_SIZE,
    maxHeight: MAX_IMAGE_SIZE,
    selectionLimit: 1,
    includeExtra: true,
  • Pick any image.
  • I expected to get the timestamp of the image but It returned undefined.

Additional Information

  • Image Picker version: 4.3.0
  • React Native version: 0.64.2
  • Platform: Android
  • Development Operating System: MacOS
  • react-native info:
System:
    OS: macOS 11.2.3
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 50.89 MB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.8.0 - ~/.asdf/installs/nodejs/16.8.0/bin/node
    Yarn: 1.22.11 - /usr/local/bin/yarn
    npm: 7.21.0 - ~/.asdf/installs/nodejs/16.8.0/bin/npm
    Watchman: 2021.09.13.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7784292
    Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.6 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: 0.64.2 => 0.64.2
    react-native-macos: Not Found
lukebrandonfarrell pushed a commit that referenced this issue Dec 7, 2021
…rrectly (#1885)

* fix(issues): fixes #1734 and #1874 by throwing / catching errors correctly

* fix(removed): removed info log statements from code changes
Johan-dutoit pushed a commit that referenced this issue Dec 7, 2021
## [4.4.1](v4.4.0...v4.4.1) (2021-12-07)

### Bug Fixes

* **issues:** fixes [#1734](#1734) and [#1874](#1874) by throwing and catching errors correctly ([#1885](#1885)) ([f0f96e5](f0f96e5))
@Johan-dutoit
Copy link
Collaborator

🎉 This issue has been resolved in version 4.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants