Author: vhalbert(a)redhat.com
Date: 2009-05-12 15:44:34 -0400 (Tue, 12 May 2009)
New Revision: 917
Modified:
trunk/engine/src/main/java/org/teiid/dqp/internal/datamgr/impl/ConnectorManager.java
Log:
Teiid-579 - NPE being caused by checking status on a connector that couldn't started
Modified:
trunk/engine/src/main/java/org/teiid/dqp/internal/datamgr/impl/ConnectorManager.java
===================================================================
---
trunk/engine/src/main/java/org/teiid/dqp/internal/datamgr/impl/ConnectorManager.java 2009-05-12
19:44:31 UTC (rev 916)
+++
trunk/engine/src/main/java/org/teiid/dqp/internal/datamgr/impl/ConnectorManager.java 2009-05-12
19:44:34 UTC (rev 917)
@@ -273,6 +273,8 @@
* @see com.metamatrix.dqp.internal.datamgr.ConnectorManager#isAlive()
*/
public Boolean getStatus() {
+ if (this.connector == null) return false;
+
ClassLoader contextloader = Thread.currentThread().getContextClassLoader();
try {
Thread.currentThread().setContextClassLoader(classloader);
Show replies by date