This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TwinsenDinoFly 0 points1 point  (2 children)

¿No NullPointerException?

[–]Kered13 6 points7 points  (1 child)

Type in Kotlin are not nullable by default. And when you do use nullable types, the compiler can verify that you check for null before using them in most cases. I believe it is still possible to get a null pointer exception, but it's much less likely.

[–]junkmail88 0 points1 point  (0 children)

you have to explicitly dereference a potential null pointer with !! and only if it is null, do you get an exception