https://issues.apache.org/bugzilla/show_bug.cgi?id=55932
Milamber <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #11 from Milamber <[email protected]> --- When I run the ant distribution task, I have this error: [java] There was 1 error: [java] 1) GUIComponents2(org.apache.jmeter.junit.JMeterTest)java.lang.NumberFormatException: For input string: "" [java] at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) [java] at java.lang.Integer.parseInt(Integer.java:470) [java] at java.lang.Integer.parseInt(Integer.java:499) [java] at org.apache.jmeter.visualizers.backend.BackendListenerGui.modifyTestElement(BackendListenerGui.java:268) [java] at org.apache.jmeter.visualizers.backend.BackendListenerGui.createTestElement(BackendListenerGui.java:257) [java] at org.apache.jmeter.junit.JMeterTest.GUIComponents2(JMeterTest.java:445) [java] at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at org.apache.jorphan.test.AllTests.main(AllTests.java:236) If the queueSize is empty, the NFE occurs. Several solutions (in my mind): 1/ add a try catch block (and ignore the NFE or set a default value) 2/ use a if/then/else block (set a default value if null or emtpy) and change the docs (not require, indicate the default value) -- You are receiving this mail because: You are the assignee for the bug.
