Skip to content

Commit

Permalink
Merge pull request #78 from ngageoint/databaseCheck
Browse files Browse the repository at this point in the history
handle invalid gpkg on startup
  • Loading branch information
jclark118 authored Jan 5, 2024
2 parents 6055e23 + a3e02f2 commit 812f2e2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,8 @@ public List<List<GeoPackageTable>> regenerateTableList() {
String database = databasesIterator.next();

// Delete any databases with invalid headers
if (!manager.validateHeader(database)) {
if (!manager.validateHeader(database) ||
database.equalsIgnoreCase("ue3.db")) {
cache.removeAndClose(database);
if (manager.delete(database)) {
databasesIterator.remove();
Expand Down

0 comments on commit 812f2e2

Please sign in to comment.