flutter-package / images_picker

Flutter plugin for selecting images/videos from the Android and iOS gallery, and taking pictures/videos with the camera
MIT License
65 stars 87 forks source link

bug on after pick video on android #79

Closed ahmadvicky closed 2 years ago

ahmadvicky commented 2 years ago

E/AndroidRuntime(18713): FATAL EXCEPTION: Thread-13 E/AndroidRuntime(18713): Process: com.csi.sellon, PID: 18713 E/AndroidRuntime(18713): java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.compress(android.graphics.Bitmap$CompressFormat, int, java.io.OutputStream)' on a null object reference E/AndroidRuntime(18713): at com.chavesgu.images_picker.ImagesPickerPlugin.createVideoThumb(ImagesPickerPlugin.java:298) E/AndroidRuntime(18713): at com.chavesgu.images_picker.ImagesPickerPlugin.access$000(ImagesPickerPlugin.java:66) E/AndroidRuntime(18713): at com.chavesgu.images_picker.ImagesPickerPlugin$1$1.run(ImagesPickerPlugin.java:264) Running Gradle task 'assembleDebug'...

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.10.4, on macOS 12.3.1 21E258 darwin-x64, locale en-SG) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.3.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2020.3) [✓] Connected device (3 available) [✓] HTTP Host Availability

I use images_picker 1.2.11

just pick from gallery then its force close