Fix use-strict issue with connectors after merge

fixing use-strict issue with connectors after merge #2632
This commit is contained in:
Loay 2016-11-30 14:36:51 -05:00 committed by GitHub
commit a34f321d2b
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ function dataSourcesFromConfig(name, config, connectorRegistry, registry) {
config.connector = require(connectorPath);
}
}
if (!config.connector.name)
if (config.connector && typeof config.connector === 'object' && !config.connector.name)
config.connector.name = name;
}