sangcomz / FishBun

:blowfish:FishBun is Image Picker for android.
Apache License 2.0
671 stars 144 forks source link

UninitializedPropertyAccessException #234

Closed Moseqi closed 1 year ago

Moseqi commented 3 years ago

I'm getting crashes in crashlytics of UninitializedPropertyAccessException version - 1.0.0-alpha05 Getting crashes in all android versions Here's the log

Fatal Exception: kotlin.UninitializedPropertyAccessException: lateinit property imageAdapter has not been initialized at com.sangcomz.fishbun.Fishton.getImageAdapter(Fishton.kt:15) at com.sangcomz.fishbun.datasource.FishBunDataSourceImpl.getImageAdapter(FishBunDataSourceImpl.kt:27) at com.sangcomz.fishbun.ui.album.model.repository.AlbumRepositoryImpl.getImageAdapter(AlbumRepositoryImpl.kt:40) at com.sangcomz.fishbun.ui.album.mvp.AlbumPresenter$loadAlbumList$$inlined$let$lambda$1$1.invoke(AlbumPresenter.kt:33) at com.sangcomz.fishbun.ui.album.mvp.AlbumPresenter$loadAlbumList$$inlined$let$lambda$1$1.invoke(AlbumPresenter.kt:26) at com.sangcomz.fishbun.util.MainUiHandler$run$1.run(MainUiHandler.kt:11) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:164) at android.app.ActivityThread.main(ActivityThread.java:6543) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:440) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:810)

sangcomz commented 3 years ago

I'll check. Thank you.

sangcomz commented 3 years ago

@Moseqi Could you explain when the issue occurs? Can I reproduce it?

Moseqi commented 3 years ago

@sangcomz Thanks for the reply and sorry for the delay(busy on another project) No, I can not reproduce it, I have tried several times but no luck. I got these logs from the crashlytics.

igor-medelian commented 3 years ago

Same issue here.

Moseqi commented 3 years ago

@sangcomz Hi, Have you find something on this? I am still getting this issue, but not frequently.

dioals commented 2 years ago

Hellp, any update on this ? still getting the same issue

Moony-H commented 2 years ago

it still getting the same issue when Fishbun started in fragment.

but set the "setIsUseDetailView" false, it works. i dont know why

sangcomz commented 1 year ago

please use 1.1.1 version. thanks