HBiSoft / PickiT

An Android library that returns real paths from Uri's
MIT License
292 stars 54 forks source link

Make path nullable to prevent Kotlin crash #30

Open mucahidkambur opened 4 years ago

mucahidkambur commented 4 years ago

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 commented 3 years ago

@HBiSoft Any updates for pr?