Hi, I was hoping to make my code free of NullPoint...
# announcements
w
Hi, I was hoping to make my code free of NullPointerExceptions when moved to Kotlin. Unfortunately, there is this
ClassName!
feature when calling Java from Kotlin that makes NPE easy as before. Why Java methods return special types with
!
instead of
?
? The bigger the trouble is, there is no visual difference between Java and Kotlin code, so it is hard to tell by looking at the code if it is safe or not.