Author: jdoyle
Date: 2009-04-01 21:19:18 -0400 (Wed, 01 Apr 2009)
New Revision: 691
Modified:
trunk/connectors/connector-xml/src/main/java/com/metamatrix/connector/xml/base/XMLConnector.java
Log:
TEIIDDES-133
The Connector was not checking for a null ExecutionContext.
Modified:
trunk/connectors/connector-xml/src/main/java/com/metamatrix/connector/xml/base/XMLConnector.java
===================================================================
---
trunk/connectors/connector-xml/src/main/java/com/metamatrix/connector/xml/base/XMLConnector.java 2009-04-01
21:43:13 UTC (rev 690)
+++
trunk/connectors/connector-xml/src/main/java/com/metamatrix/connector/xml/base/XMLConnector.java 2009-04-02
01:19:18 UTC (rev 691)
@@ -57,6 +57,10 @@
}
public Connection getConnection(ExecutionContext context) throws ConnectorException {
+ if(null == context) {
+ return null;
+ }
+
if (m_state == null) {
throw new
ConnectorException(Messages.getString("XMLConnector.state.not.set"));
//$NON-NLS-1$
}
Show replies by date