Skip to content

Commit

Permalink
Merge pull request #10959 from balachandarlinks:handle-sql-exception-…
Browse files Browse the repository at this point in the history
…in-cached-content-index

PiperOrigin-RevId: 508323432
  • Loading branch information
christosts committed Feb 14, 2023
2 parents e0ad4ed + 3c09cbd commit 1249dcd
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -794,11 +794,15 @@ public void initialize(long uid) {

@Override
public boolean exists() throws DatabaseIOException {
return VersionTable.getVersion(
databaseProvider.getReadableDatabase(),
VersionTable.FEATURE_CACHE_CONTENT_METADATA,
checkNotNull(hexUid))
!= VersionTable.VERSION_UNSET;
try {
return VersionTable.getVersion(
databaseProvider.getReadableDatabase(),
VersionTable.FEATURE_CACHE_CONTENT_METADATA,
checkNotNull(hexUid))
!= VersionTable.VERSION_UNSET;
} catch (SQLException e) {
throw new DatabaseIOException(e);
}
}

@Override
Expand Down

0 comments on commit 1249dcd

Please sign in to comment.