Skip to content

Commit 76cf8cb

Browse files
authored
Update MultipleImagePickerModule.kt
Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Bitmap? issue fixes
1 parent d9620d0 commit 76cf8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/reactnativemultipleimagepicker/MultipleImagePickerModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ class MultipleImagePickerModule(reactContext: ReactApplicationContext) : ReactCo
218218
fOut = FileOutputStream(file)
219219

220220
// 100 means no compression, the lower you go, the stronger the compression
221-
image.compress(Bitmap.CompressFormat.JPEG, 50, fOut)
221+
image?.compress(Bitmap.CompressFormat.JPEG, 50, fOut)
222222
fOut.flush()
223223
fOut.close()
224224

0 commit comments

Comments
 (0)