diff --git a/landscapist-transformation/src/main/kotlin/com/skydoves/landscapist/transformation/RenderScriptToolkit.kt b/landscapist-transformation/src/main/kotlin/com/skydoves/landscapist/transformation/RenderScriptToolkit.kt index 522ce0c6..c6e8991d 100644 --- a/landscapist-transformation/src/main/kotlin/com/skydoves/landscapist/transformation/RenderScriptToolkit.kt +++ b/landscapist-transformation/src/main/kotlin/com/skydoves/landscapist/transformation/RenderScriptToolkit.kt @@ -435,7 +435,7 @@ internal fun validateBitmap( } internal fun createCompatibleBitmap(inputBitmap: Bitmap) = - Bitmap.createBitmap(inputBitmap.width, inputBitmap.height, inputBitmap.config) + Bitmap.createBitmap(inputBitmap.width, inputBitmap.height, inputBitmap.config!!) internal fun validateHistogramDotCoefficients( coefficients: FloatArray?,