java.lang.RuntimeException: java.lang.NumberFormatException: empty String
at anywheresoftware.b4a.keywords.Common$2$1.run(Common.java:1020)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$148(WinApplication.java:191)
at java.lang.Thread.run(Thread.java:748)
Caused by: 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 anywheresoftware.b4a.BA.ObjectToNumber(BA.java:395)
at b4j.example.b4xdialog._getbutton(b4xdialog.java:340)
at b4j.example.b4xdialog._setbuttonstate(b4xdialog.java:493)
at b4j.example.b4xinputtemplate._validate(b4xinputtemplate.java:206)
at b4j.example.b4xinputtemplate$ResumableSub_Show.resume(b4xinputtemplate.java:155)
at anywheresoftware.b4a.keywords.Common$2$1.run(Common.java:1018)
... 7 more
I see this too in the unmodified B4JDialogs example. And once a dialog (except Custom) is displayed pressing a key causes a further exception and kills the app. Happens on Java 8, OpenJDK11 and OpenJDK14.
B4X:
b4xdialog._getbutton (java line: 340)
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 anywheresoftware.b4a.BA.ObjectToNumber(BA.java:395)
at b4j.example.b4xdialog._getbutton(b4xdialog.java:340)
at b4j.example.b4xdialog._setbuttonstate(b4xdialog.java:493)