Kotlin's error message: java.lang.NumberFormatException: For input string: ""

kotlin的报错提示:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ufi.pdioms.ztkotlin/com.demo.test.kotlin.MainActivity}: java.lang.NumberFormatException: For input string: “”

In the error message: For input string: ""

For input string: ""'"" is an element in the array is "", how to find it, as shown below, this is the debug
insert image description here
671 = "" string is empty

solve:

If the string is empty, do not need to execute

Guess you like

Origin blog.csdn.net/qq_35091074/article/details/123897705