Bug 60392 - NPE JDBCSampler when catching Exceptions
Summary: NPE JDBCSampler when catching Exceptions
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.1
Hardware: All All
: P2 minor (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2016-11-19 19:33 UTC by Felix Schumacher
Modified: 2016-11-29 19:47 UTC (History)
0 users



Attachments
Guard Exception handler against null messages (1.17 KB, patch)
2016-11-19 19:33 UTC, Felix Schumacher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Schumacher 2016-11-19 19:33:56 UTC
Created attachment 34461 [details]
Guard Exception handler against null messages

When reporting illegal arguments the H2 driver does not set a message, which leads to a NPE and a falsely true sample result. The attached patch guards the exception handler against this.
Comment 1 UbikLoadPack support 2016-11-28 08:45:59 UTC
+1 for patch commiting
Comment 2 Felix Schumacher 2016-11-29 19:47:30 UTC
Date: Tue Nov 29 19:46:58 2016
New Revision: 1771948

URL: http://svn.apache.org/viewvc?rev=1771948&view=rev
Log:
603982 Guard Exception handler of the JDBCSampler against null messages

Modified:
    jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/sampler/JDBCSampler.java
    jmeter/trunk/xdocs/changes.xml