Bug? B4J Version 8.30 - B4XDialog "java.lang.NumberFormatException: empty String"

moster67

Expert
Licensed User
Longtime User
I get a "java.lang.NumberFormatException" error with B4J Version 8.30.
Same code works fine with B4J 8.10

When using the following code in a button click event, I get the following exception:
"java.lang.NumberFormatException: empty String"

B4X:
Sub Button1_Click
    
    dialog.Title = "Insert some text"
    Dim input As B4XInputTemplate
    input.Initialize
    input.lblTitle.Text = "Testing"
    input.RegexPattern = ".+" 'require at least one character
    Wait For (dialog.ShowTemplate(input, "OK", "", "CANCEL")) Complete (Result As Int) 'error
    If Result = xui.DialogResponse_Positive Then
        Log("This was the input text " & input.Text)
    End If
    
    
End Sub

Attaching a sample project.

Maybe I am doing something wrong?
 

Attachments

  • testb4jbug.zip
    2.2 KB · Views: 382
Cookies are required to use this site. You must accept them to continue using the site. Learn more…