Commit 20a5e468 by christosts

Merge pull request #10959 from balachandarlinks:handle-sql-exception-in-cached-content-index

PiperOrigin-RevId: 508323432
parents 2eca2614 3c09cbd8
...@@ -794,11 +794,15 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull; ...@@ -794,11 +794,15 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
@Override @Override
public boolean exists() throws DatabaseIOException { public boolean exists() throws DatabaseIOException {
try {
return VersionTable.getVersion( return VersionTable.getVersion(
databaseProvider.getReadableDatabase(), databaseProvider.getReadableDatabase(),
VersionTable.FEATURE_CACHE_CONTENT_METADATA, VersionTable.FEATURE_CACHE_CONTENT_METADATA,
checkNotNull(hexUid)) checkNotNull(hexUid))
!= VersionTable.VERSION_UNSET; != VersionTable.VERSION_UNSET;
} catch (SQLException e) {
throw new DatabaseIOException(e);
}
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment