You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix crash when uploading a duplicate file
* Fix: app crash
* added Kdoc
* remove line b/w kdoc and function
---------
Co-authored-by: Nicolas Raoul <nicolas.raoul@gmail.com>
return basicKvStoreFactory ?:throwIllegalStateException("basicKvStoreFactory has not been initialized")
141
+
}
142
+
143
+
/**
144
+
* Ensures that the BasicKvStore factory has been initialized before use.
145
+
*
146
+
* @throws IllegalStateException if the factory is null.
147
+
*/
148
+
privatefunrequireFactoryInitialized() {
149
+
val field =this::class.java.getDeclaredField("basicKvStoreFactory")
150
+
field.isAccessible =true
151
+
val value = field.get(this)
152
+
if (value ==null) {
153
+
throwIllegalStateException("basicKvStoreFactory must be initialized before use. Please call setupBasicKvStoreFactory() before using presenter methods that require it.")
154
+
}
155
+
}
156
+
135
157
/**
136
158
* Calls checkImageQuality of UploadMediaPresenter to check image quality of next image
137
159
*
138
160
* @param uploadItemIndex Index of next image, whose quality is to be checked
0 commit comments