IR/Android: place the cache field first
to avoid NPEs if it is used during instance initialization.
This commit is contained in:
Vendored
+3
-1
@@ -33,9 +33,11 @@ class MyActivity(): Activity() {
|
||||
} as T?
|
||||
}
|
||||
|
||||
private val textViewString = textView1.toString()
|
||||
|
||||
public fun box(): String {
|
||||
val result = when {
|
||||
textView1.toString() == "TextView" && password.toString() == "EditText" && login.toString() == "Button" -> "OK"
|
||||
textViewString == "TextView" && password.toString() == "EditText" && login.toString() == "Button" -> "OK"
|
||||
else -> ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user