thielepaul / photoprism-mobile

Flutter App for PhotoPrism
GNU General Public License v3.0
892 stars 72 forks source link

Fix Android crash when enabling Auto Upload by updating flutter_photo_manager library #67

Closed Joby890 closed 3 years ago

Joby890 commented 3 years ago

PhotoPrism Android app would crash once enabling Auto Upload in the setting page. The stack trace in the logcat is below. Reloading the app and accessing the Setting page would also crash the app with the same stack trace.

Fix: Updating the flutter_photo_manager library version fixes the crash.

pubspec.lock changes were auto-generated during building and testing fix. Please let me know if I can provide any other information or further testing.

Thanks

java.lang.IllegalStateException: galleryName must not be null at top.kikt.imagescanner.core.utils.AndroidQDBUtils.getGalleryList(AndroidQDBUtils.kt:66) at top.kikt.imagescanner.core.PhotoManager.getGalleryList(PhotoManager.kt:42) at top.kikt.imagescanner.core.PhotoManagerPlugin$onHandlePermissionResult$1.invoke(PhotoManagerPlugin.kt:165) at top.kikt.imagescanner.core.PhotoManagerPlugin$onHandlePermissionResult$1.invoke(PhotoManagerPlugin.kt:23) at top.kikt.imagescanner.core.PhotoManagerPlugin$sam$java_lang_Runnable$0.run(Unknown Source:2) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919)