mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-7260: Fixes NPE on databases other than PostgreSQL and MySQL
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32385 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -76,9 +76,9 @@ public class ExportDbTest
|
||||
{
|
||||
Class dialectClass = dialect.getClass();
|
||||
|
||||
if (logger.isInfoEnabled())
|
||||
if (logger.isDebugEnabled())
|
||||
{
|
||||
logger.info("Using dialect class " + dialectClass.getName());
|
||||
logger.debug("Using dialect class " + dialectClass.getName());
|
||||
}
|
||||
|
||||
if (PostgreSQLDialect.class.isAssignableFrom(dialectClass))
|
||||
@@ -90,7 +90,17 @@ public class ExportDbTest
|
||||
exportTester = new MySQLDialectExportTester(exporter, tx, jdbcTemplate);
|
||||
}
|
||||
|
||||
// Run the DBMS specific tests.
|
||||
exportTester.runExportTest();
|
||||
if (exportTester != null)
|
||||
{
|
||||
// Run the DBMS specific tests.
|
||||
exportTester.runExportTest();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (logger.isInfoEnabled())
|
||||
{
|
||||
logger.info("Unsupported dialect for this test " + dialectClass.getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user