This code is occasionally throwing a null pointer exception (NPE). How can you change the code so it never throws as NPE?
println("length of First Name = ${firstName!!.length}")
This code is occasionally throwing a null pointer exception (NPE). How can you change the code so it never throws as NPE?
println("length of First Name = ${firstName!!.length}")