Skip to content

Commit 3e3bb69

Browse files
fix: UninitializedPropertyAccessException in ImageFragment onDestroy (commons-app#6661)
* fix: UninitializedPropertyAccessException in ImageFragment onDestroy * Refactor: filteredImages to private initialized property to prevent onDestroy crash
1 parent 0da949e commit 3e3bb69

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/java/fr/free/nrw/commons/customselector/ui/selector

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/customselector/ui/selector/ImageFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class ImageFragment :
8383
private var selectorRV: RecyclerView? = null
8484
private var loader: ProgressBar? = null
8585
private var switch: SwitchMaterial? = null
86-
lateinit var filteredImages: ArrayList<Image>
86+
private var filteredImages: ArrayList<Image> = arrayListOf()
8787

8888
/**
8989
* Stores all images

0 commit comments

Comments
 (0)