mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-25 08:32:32 +00:00
Backup manager bug
Error if no database. Fixed.
This commit is contained in:
parent
f3ae5c9c4a
commit
f640d86e9c
@ -59,13 +59,15 @@ public class DatabaseCatalog extends BackupCatalog {
|
||||
actionMap.put(action, ++ind);
|
||||
}
|
||||
makeTableDefinition();
|
||||
|
||||
|
||||
dbControlUnit = DBControlUnit.findDatabaseControl();
|
||||
pamConnection = dbControlUnit.getConnection();
|
||||
DBProcess dbProcess = dbControlUnit.getDbProcess();
|
||||
boolean tableOk = dbProcess.checkTable(fullTableDef);
|
||||
if (tableOk == false) {
|
||||
System.err.println("Error checking backup table " + fullTableDef.getTableName());
|
||||
if (dbControlUnit != null) {
|
||||
pamConnection = dbControlUnit.getConnection();
|
||||
DBProcess dbProcess = dbControlUnit.getDbProcess();
|
||||
boolean tableOk = dbProcess.checkTable(fullTableDef);
|
||||
if (tableOk == false) {
|
||||
System.err.println("Error checking backup table " + fullTableDef.getTableName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user