https://kotlinlang.org logo
#announcements
Title
# announcements
a

alexreidy

06/25/2017, 9:47 PM
This has been known for probably at least a year and nobody thinks it's worth addressing? Makes me wonder what else I'm going to run into with Kotlin. Maybe a compiler warning would be a good start: "Calling valid code from here can easily result in null pointer exceptions where they are ordinarily impossible" ... this feels like undefined behavior.
d

diesieben07

06/25/2017, 10:07 PM
alexreidy: Intellij already warns about this behavior:

http://i.imgur.com/IFfdDt5.png

x

xap4o

06/25/2017, 10:18 PM
Actually this is no better than Java.
a

alexreidy

06/25/2017, 10:19 PM
Hmm good to know, thanks. I must have that kind of warning turned off or something though. But I still get warned about my impossible
if (x == null) {}
that actually executes... 😑
x

xap4o

06/25/2017, 10:19 PM
yeah (
2 Views