PickiT icon indicating copy to clipboard operation
PickiT copied to clipboard

Make path nullable to prevent Kotlin crash

Open mucahidkambur opened this issue 3 years ago • 1 comments

I used this library on Kotlin project, it works very well but there is a small problem. The application is crashing when user picks a Contact. I looked your code and the problem was the "path" variable. As you know Kotlin is null safety but in this library "path" library is not nullable . To fix this problem i made "path" variable nullable to prevent crash.

Here is the log of the crash: Caused by: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter path

mucahidkambur avatar Oct 02 '20 21:10 mucahidkambur

@HBiSoft Any updates for pr?

mucahidkambur avatar Nov 09 '20 20:11 mucahidkambur