https://issues.apache.org/bugzilla/show_bug.cgi?id=51888
Sebb <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO --- Comment #29 from Sebb <[email protected]> 2011-09-27 10:49:29 UTC --- (In reply to comment #28) > I added exception as parameter to logger.warn: > 2011/09/27 12:26:10 WARN - jmeter.threads.JMeterThread: Caught Exception > interrupting sampler: java.lang.NullPointerException > java.lang.NullPointerException > at org.apache.jmeter.threads.JMeterThread.interrupt(JMeterThread.java:602) > at > org.apache.jmeter.engine.StandardJMeterEngine.tellThreadsToStop(StandardJMeterEngine.java:552) > at > org.apache.jmeter.engine.StandardJMeterEngine.access$2(StandardJMeterEngine.java:547) > at > org.apache.jmeter.engine.StandardJMeterEngine$StopTest.run(StandardJMeterEngine.java:284) > at java.lang.Thread.run(Thread.java:680) > > > It's currentSampler that has been nullified by run finally block while > interrupt is executing. The code fetches the the value again, but fails to check it for null. That's a mistake; there should be a null check, which is used to skip the code when shutdown runs before interrup. No wonder there's an NPE... Committed another fix; hopefully that's enough now: URL: http://svn.apache.org/viewvc?rev=1176320&view=rev Log: Forgot to check if currentSampler had been set to null, e.g. by shutdown Modified: jakarta/jmeter/trunk/src/core/org/apache/jmeter/threads/JMeterThread.java -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
