ASF Bugzilla – Attachment 36823 Details for
Bug 63833
NPE in DBCP when attempting to connect to a database that doesn't exist
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
A draft to solve this issue.
BZ-63833-1.patch (text/plain), 614 bytes, created by
Guoxiong Li
on 2019-10-11 13:12:01 UTC
(
hide
)
Description:
A draft to solve this issue.
Filename:
MIME Type:
Creator:
Guoxiong Li
Created:
2019-10-11 13:12:01 UTC
Size:
614 bytes
patch
obsolete
>diff --git a/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java b/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java >index 5d351a71fc..78b19c6b6a 100644 >--- a/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java >+++ b/java/org/apache/tomcat/dbcp/dbcp/BasicDataSource.java >@@ -1735,7 +1735,9 @@ public class BasicDataSource implements DataSource { > connectionFactory.passivateObject(conn); > } > finally { >- connectionFactory.destroyObject(conn); >+ if (conn != null) { >+ connectionFactory.destroyObject(conn); >+ } > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 63833
:
36823
|
36824