Adjust the condition of the port number (#3954)

This commit is contained in:
Gomaa 2021-06-07 09:22:46 +02:00 committed by GitHub
parent cfe00de6c2
commit 64bc7e2f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -466,7 +466,8 @@ public class DatabaseImportController implements ImportingController {
}
if (jdbcConfig.getDatabaseHost() == null || jdbcConfig.getDatabaseName() == null
|| jdbcConfig.getDatabasePassword() == null || jdbcConfig.getDatabaseType() == null
|| jdbcConfig.getDatabaseUser() == null || query == null || jdbcConfig.getDatabasePort() == 0) {
|| jdbcConfig.getDatabaseUser() == null || query == null
|| (jdbcConfig.getDatabasePort() == 0 && !"SQLite".equalsIgnoreCase(jdbcConfig.getDatabaseType()))) {
if(logger.isDebugEnabled()) {
logger.debug("Missing Database Configuration::{}", jdbcConfig);
}