[go: nahoru, domu]

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
(cherry picked from commit 1249dcd)
  • Loading branch information
christosts authored and tonihei committed Feb 28, 2023
1 parent e89c14a commit 70db687
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 70db687

Please sign in to comment.