Android Question java.lang.NumberFormatException: empty String


Active Member
Licensed User
Good morning everyone,

I get this error and I can not intercept it, in debug it never gives an error.
How can I find it?
Thank you

main_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7 (java line: 3138)
java.lang.NumberFormatException: empty String
    at sun.misc.FloatingDecimal.readJavaFormatString(
    at sun.misc.FloatingDecimal.parseDouble(
    at java.lang.Double.parseDouble(
    at B4A.SendTime.main._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7(
    at B4A.SendTime.main._activity_create(
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(
    at B4A.SendTime.main.afterFirstLayout(
    at B4A.SendTime.main.access$000(
    at B4A.SendTime.main$
    at android.os.Handler.handleCallback(
    at android.os.Handler.dispatchMessage(
    at android.os.Looper.loop(
    at java.lang.reflect.Method.invoke(Native Method)
java.lang.NumberFormatException: empty String
(NumberFormatException) java.lang.NumberFormatException: empty String
errore app.jpeg


Licensed User
Longtime User
line 3138 in your main_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7 file
will tell you which line in your b4a source has triggered the exception.

the file is found in a subfolder of objects --> source ---> etc ---> etc -->
look in your project's folder.

the remedy would depend on whether or not user input is involved. someone
is responsible for allowing the empty string.

if you go to line 3138 in, you will see something like this:
 //BA.debugLineNum = 765;BA.debugLine="ToastMessageShow ...

that tells you to go to line 765 in your b4a source for the statement that
triggered the exception.
Upvote 0