mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-25 16:42:27 +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);
|
actionMap.put(action, ++ind);
|
||||||
}
|
}
|
||||||
makeTableDefinition();
|
makeTableDefinition();
|
||||||
|
|
||||||
dbControlUnit = DBControlUnit.findDatabaseControl();
|
dbControlUnit = DBControlUnit.findDatabaseControl();
|
||||||
pamConnection = dbControlUnit.getConnection();
|
if (dbControlUnit != null) {
|
||||||
DBProcess dbProcess = dbControlUnit.getDbProcess();
|
pamConnection = dbControlUnit.getConnection();
|
||||||
boolean tableOk = dbProcess.checkTable(fullTableDef);
|
DBProcess dbProcess = dbControlUnit.getDbProcess();
|
||||||
if (tableOk == false) {
|
boolean tableOk = dbProcess.checkTable(fullTableDef);
|
||||||
System.err.println("Error checking backup table " + fullTableDef.getTableName());
|
if (tableOk == false) {
|
||||||
|
System.err.println("Error checking backup table " + fullTableDef.getTableName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user