Update of /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32528/src/java/org/logicalcobwebs/proxool
Modified Files:
FatalSqlExceptionHelper.java
Log Message:
Check for exception message being null
Index: FatalSqlExceptionHelper.java
===================================================================
RCS file: /cvsroot/proxool/proxool/src/java/org/logicalcobwebs/proxool/FatalSqlExceptionHelper.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** FatalSqlExceptionHelper.java 30 Sep 2003 18:39:08 -0000 1.3
--- FatalSqlExceptionHelper.java 1 Jul 2005 08:02:50 -0000 1.4
***************
*** 115,119 ****
Iterator i = cpd.getFatalSqlExceptions().iterator();
while (i.hasNext()) {
! if (t.getMessage().indexOf((String) i.next()) > -1) {
// This SQL exception indicates a fatal problem with this connection.
fatalSqlExceptionDetected = true;
--- 115,119 ----
Iterator i = cpd.getFatalSqlExceptions().iterator();
while (i.hasNext()) {
! if (t.getMessage() != null && t.getMessage().indexOf((String) i.next()) > -1) {
// This SQL exception indicates a fatal problem with this connection.
fatalSqlExceptionDetected = true;
***************
*** 198,201 ****
--- 198,204 ----
Revision history:
$Log$
+ Revision 1.4 2005/07/01 08:02:50 billhorsman
+ Check for exception message being null
+
Revision 1.3 2003/09/30 18:39:08 billhorsman
New test-before-use, test-after-use and fatal-sql-exception-wrapper-class properties.
|