Author: rareddy
Date: 2009-03-31 18:06:22 -0400 (Tue, 31 Mar 2009)
New Revision: 677
Modified:
trunk/engine/src/main/java/org/teiid/dqp/internal/datamgr/impl/ConnectorWrapper.java
Log:
TEIID-164: anticipating for getting null connections due to unavailability of the
underlying data source
Modified:
trunk/engine/src/main/java/org/teiid/dqp/internal/datamgr/impl/ConnectorWrapper.java
===================================================================
---
trunk/engine/src/main/java/org/teiid/dqp/internal/datamgr/impl/ConnectorWrapper.java 2009-03-31
21:36:16 UTC (rev 676)
+++
trunk/engine/src/main/java/org/teiid/dqp/internal/datamgr/impl/ConnectorWrapper.java 2009-03-31
22:06:22 UTC (rev 677)
@@ -98,7 +98,9 @@
} catch (ConnectorException e) {
return Boolean.FALSE;
} finally {
- conn.close();
+ if (conn != null) {
+ conn.close();
+ }
}
}
return null;
Show replies by date