You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by Michael Coram <MC...@infocruiser.com> on 2001/08/13 17:05:47 UTC
bug on line 311 in GenericController
Hope this the correct maillist rather than jmeter-user...Tried to get the
FAQ, but there isn't one.
I was running 1.6.1 and found a bug with the following scenario:
Root
ThreadGroup (10 threads)
InterleaveController
WebController
WebController
Graph Results
A NullPointerException occurred on line 311 in
org.apache.jmeter.control.GenericController.
To fix this, simply replace
if(controlIt.hasNext())
with
if(controlIt != null && controlIt.hasNext())
If you look at the logic, you'll notice that if endEntryCycle() is called
twice, with controlIt.hasNext() returning false the first time, the NPE
will result since controlIt is set to null during the first call. Note that
calls to removeFromIterator() would also throw an NPE under this scenario,
though I did not see this occur.
I downloaded the 8/10 nightly build, and the problem still existed.
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org