Revision: 14455
http://gate.svn.sourceforge.net/gate/?rev=14455&view=rev
Author: ian_roberts
Date: 2011-10-28 16:17:43 +0000 (Fri, 28 Oct 2011)
Log Message:
-----------
NPE-guard.
Modified Paths:
--------------
mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java
Modified:
mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java
===================================================================
--- mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java
2011-10-28 16:12:57 UTC (rev 14454)
+++ mimir/trunk/plugins/db-h2/src/gate/mimir/db/DBSemanticAnnotationHelper.java
2011-10-28 16:17:43 UTC (rev 14455)
@@ -1071,8 +1071,10 @@
//now close the connection
try {
- dbConnection.close();
- dbConnection = null;
+ if(dbConnection != null) {
+ dbConnection.close();
+ dbConnection = null;
+ }
} catch(SQLException e) {
logger.warn("Error while closing DB COnnection", e);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs