Skip to content

The image_picker returns null when selecting an image from onedrive #47240

@jamesmoore255

Description

@jamesmoore255

Steps to Reproduce

  1. Use the image picker to choose an image from the gallery
  2. Use the onedrive application on your phone to choose an image
  3. print out the File object after choosing the image and it will be null, if used on a real phone the application will crash to the home screen

Target Platform:
Android
iOS needs to be tested
Target OS version/browser:

Devices:
Pixel 2, Pixel

Logs

   info • The value of the local variable 'stateNotifications' isn't used •
          lib/my-app.dart:57:24 • unused_local_variable
   info • The value of the local variable 'updateRefCollection' isn't used •
          lib/pages/admin/admin-users.dart:71:12 • unused_local_variable
   info • The value of the local variable 'sendTest' isn't used •
          lib/pages/admin/admin-users.dart:143:22 • unused_local_variable
   info • The value of the local variable 'message' isn't used •
          lib/pages/admin/admin-users.dart:149:22 • unused_local_variable
   info • The value of the local variable 'type' isn't used •
          lib/pages/admin/admin-users.dart:150:22 • unused_local_variable
   info • The value of the local variable 'stateUser' isn't used •
          lib/pages/campaign-builder/campaign-messages-variations.dart:52:15 •
          unused_local_variable
   info • The value of the local variable 'canEdit' isn't used •
          lib/pages/campaign-builder/campaign-messages-variations.dart:53:10 •
          unused_local_variable
   info • The value of the local variable 'alert' isn't used •
          lib/pages/click/clicks-page.dart:148:11 • unused_local_variable
   info • The declaration '_auth' isn't referenced •
          lib/pages/client/client-profile.dart:15:20 • unused_element
   info • The value of the field '_clicker' isn't used •
          lib/state/state-user.dart:13:8 • unused_field
   info • The value of the local variable 'client' isn't used •
          lib/state/state-user.dart:122:12 • unused_local_variable

11 issues found. (ran in 3.9s)
[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Linux, locale en_US.UTF-8)
    • Flutter version 1.12.13+hotfix.5 at /home/james/development/flutter
    • Framework revision 27321ebbad (7 days ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /home/james/Android/Sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /home/james/Android/Sdk
    • Java binary at:
      /home/james/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.601
      0548/jre/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_202-release-1483-b49-5587405)
    • All Android licenses accepted.

[✓] Android Studio (version 3.5)
    • Android Studio at
      /home/james/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/191.601
      0548
    • Flutter plugin version 39.0.3
    • Dart plugin version 191.8423
    • Java version OpenJDK Runtime Environment (build
      1.8.0_202-release-1483-b49-5587405)

[!] IntelliJ IDEA Ultimate Edition (version 2019.3)
    • IntelliJ at
      /home/james/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/193.5233.102
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.dev/intellij-setup/#installing-the-plugins

[✓] VS Code (version 1.40.2)
    • VS Code at /usr/share/code
    • Flutter extension version 3.6.0

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5556 • android-x86 • Android 8.1.0
      (API 27) (emulator)

Metadata

Metadata

Assignees

Labels

c: crashStack traces logged to the consolep: image_pickerThe Image Picker plugin.packageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions