Uldis Indriksons
09/05/2018, 8:33 AM.?
works. So we decompiled it using AndroidStudio. The outcome was unexpected for us.
The class:
class NullSafeCall {
var nullableString: String? = null
fun nullSafe() {
nullableString?.length
}
}
Decompiled nullSafe
method:
public final void nullSafe() {
String var10000 = this.nullableString;
if (this.nullableString != null) {
var10000.length();
}
}
It looks to me it can still get NPE as a result of nasty race-condition. Can someone explain to me wether it’ s kotlin issue or decompiler output is not quite accurate.spand
09/05/2018, 8:41 AMUldis Indriksons
09/05/2018, 10:37 AM