milamberspace opened a new pull request, #5901: URL: https://github.com/apache/jmeter/pull/5901
…xy Settings panel ## Description On proxy settings, if the Counter is empty or not a numeric value, when you click on Set Counter button, JMeter have a NumberFormatException 2023-05-04 17:10:42,819 ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main] java.lang.NumberFormatException: For input string: "" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:67) ~[?:?] at java.lang.Integer.parseInt(Integer.java:678) ~[?:?] at java.lang.Integer.parseInt(Integer.java:786) ~[?:?] at org.apache.jmeter.protocol.http.proxy.gui.ProxyControlGui.lambda$createHTTPSamplerPanel$1(ProxyControlGui.java:985) ~[ApacheJMeter_http.jar:5.4.3] ## Motivation and Context This PR fix this issue with a test on the value, and display a popup if not a digit value ## How Has This Been Tested? * Enter text or leave empty the counter field and click on Set Counter button ## Screenshots (if appropriate): ## Types of changes - Bug fix (non-breaking change which fixes an issue) ## Checklist: - [ X] My code follows the [code style][style-guide] of this project. - [ ] I have updated the documentation accordingly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org