milamberspace commented on code in PR #5901: URL: https://github.com/apache/jmeter/pull/5901#discussion_r1189715944
########## src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/proxy/gui/ProxyControlGui.java: ########## @@ -691,6 +698,17 @@ void enableRestart() { } } + void setSetCounters() { + if ((counterValue.getText().length() > 0) && NumberUtils.isParsable(counterValue.getText())) { + Proxy.setCounter(Integer.parseInt(counterValue.getText())); + } else { + JOptionPane.showMessageDialog(this, + //"Counter isn't a number value.", "Error on counter value", JOptionPane.WARNING_MESSAGE); + JMeterUtils.getResString("proxy_settings_counter_error_digits"), // $NON-NLS-1$ + JMeterUtils.getResString("proxy_settings_counter_error_invalid_data"), // $NON-NLS-1$ + JOptionPane.WARNING_MESSAGE); Review Comment: This PR aims first to correct the NFE (which is a technical error), and not to make improvements in the Counter field. If there is a need to add functionality for evaluating JMeter functions, that will be the subject of another ticket. Can I have your LGTM? -- 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