nickk08/13/2018, 2:15 PM
property is null, hasPhoto() seems to return true and control goes to the next statement (Kotlin 1.2.60)
Czar08/13/2018, 2:24 PM
it becomes initialized, so this is correct. Although I wonder, how did you assign null to non-nullable property? Reflection?
nickk08/13/2018, 2:30 PM
Denis A08/13/2018, 2:31 PM
nickk08/13/2018, 2:32 PM
Denis A08/13/2018, 2:32 PM
ilya.gorbunov08/13/2018, 6:17 PM
Tony Hoyle08/13/2018, 6:20 PM
nickk08/14/2018, 7:55 AM
was a really bad idea in this case. I hadn’t thought that gson could set it to null anyway.