Skip to content

Commit 41f26db

Browse files
authored
Merge pull request #16 from ymane/patch-1
Update MultipleImagePickerModule.kt
2 parents d9620d0 + 76cf8cb commit 41f26db

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)