Kotlin Null Safety

This code is showing error this is the same code as Pulkit bhaya wrote in NUll safety section

var f:String?= null
fun main(){
f = “Gautham”
val size:Int = f?.length!!
println(size)
}

please help what is the problem here?

Follow this link for better understanding: https://www.youtube.com/watch?v=XFcJZTa-lHg