Bug? jShell Run(0) crashes

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi Erel,

just a minor one. If a timeout of 0 is entered, following error:
B4X:
Program started.
java.lang.IllegalArgumentException: timeout must not be less than 1.
    at org.apache.commons.exec.Watchdog.<init>(Watchdog.java:39)
    at org.apache.commons.exec.ExecuteWatchdog.<init>(ExecuteWatchdog.java:83)
    at anywheresoftware.b4j.objects.Shell.Run(Shell.java:89)
    at com.rwblinn.main._rundosshell2(main.java:1447)
    at com.rwblinn.main._buttontest_action(main.java:320)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:92)
    at anywheresoftware.b4a.BA$2.run(BA.java:158)
    at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
    at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
    at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
    at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:17)
    at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:67)
    at java.lang.Thread.run(Thread.java:744)
 
Top