db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r1375891 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/oid/IDBroker.java
Date Wed, 22 Aug 2012 04:04:59 GMT
Author: tfischer
Date: Wed Aug 22 04:04:59 2012
New Revision: 1375891

URL: http://svn.apache.org/viewvc?rev=1375891&view=rev
Log:
Fix NullPointerException if connection cannot be opened.

Modified:
    db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/oid/IDBroker.java

Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/oid/IDBroker.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/oid/IDBroker.java?rev=1375891&r1=1375890&r2=1375891&view=diff
==============================================================================
--- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/oid/IDBroker.java
(original)
+++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/oid/IDBroker.java
Wed Aug 22 04:04:59 2012
@@ -236,16 +236,6 @@ public class IDBroker implements Runnabl
         try
         {
             dbCon = Transaction.begin(databaseName);
-        }
-        catch (Throwable t)
-        {
-            log.error("Could not open a connection to the database "
-                    + databaseName,
-                    t);
-            transactionsSupported = false;
-        }
-        try
-        {
             transactionsSupported = dbCon.getMetaData().supportsTransactions();
             Transaction.commit(dbCon);
             dbCon = null;



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message