@jkbbwr: That is my problem, I don't trust platform types to be non-null but Kotlin doesn't give me any tools for identifying when I have a platform type. It isn't always obvious whether you are calling a Kotlin function or a Java function, especially when working with a foreign code base.