File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
driver/src/main/java/oracle/nosql/driver/query Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
2222- Authentication calls for on premises login will now honor the request timeout
2323 rather than using a hard-coded 30s timeout
2424
25+ ### Fixed
26+ - Fixed a problem where if QueryRequest were created with a complex query and
27+ closed before results were handled a null pointer exception could occur.
28+
2529## [ 5.4.17] 2025-03-03
2630
2731### Added
Original file line number Diff line number Diff line change @@ -234,14 +234,17 @@ private void setQueryResult(QueryResult result) {
234234 }
235235
236236 public void close () {
237- theRequest .getPreparedStatement ().driverPlan ().close (theRCB );
237+ /* if there is no RCB there is no state to clean up */
238+ if (theRCB != null ) {
239+ theRequest .getPreparedStatement ().driverPlan ().close (theRCB );
240+ }
238241 if (theResults != null ) {
239242 theResults .clear ();
240243 theResults = null ;
241244 }
242245 }
243246
244247 public String getQueryTrace () {
245- return theRCB .getQueryTrace ();
248+ return theRCB != null ? theRCB .getQueryTrace () : null ;
246249 }
247250}
You can’t perform that action at this time.
0 commit comments