Android Question java.lang.NumberFormatException: empty String

Pesciolina

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

B4X:
main_vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7 (java line: 3138)
java.lang.NumberFormatException: empty String
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1842)
    at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
    at java.lang.Double.parseDouble(Double.java:538)
    at B4A.SendTime.main._vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv7(main.java:3138)
    at B4A.SendTime.main._activity_create(main.java:652)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at B4A.SendTime.main.afterFirstLayout(main.java:105)
    at B4A.SendTime.main.access$000(main.java:17)
    at B4A.SendTime.main$WaitForLayout.run(main.java:83)
    at android.os.Handler.handleCallback(Handler.java:900)
    at android.os.Handler.dispatchMessage(Handler.java:103)
    at android.os.Looper.loop(Looper.java:219)
    at android.app.ActivityThread.main(ActivityThread.java:8393)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
java.lang.NumberFormatException: empty String
(NumberFormatException) java.lang.NumberFormatException: empty String
errore app.jpeg
 

drgottjr

Well-Known Member
Licensed 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 --> main.java.
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 main.java, you will see something like this:
B4X:
 //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
Top