mirror of
https://github.com/elisspace/autopsy.git
synced 2026-09-03 06:25:58 +00:00
Merge pull request #4383 from raman-bt/1168-complete-exceptionally
1168: CompletableFuture may not always complete.
This commit is contained in:
@@ -767,11 +767,11 @@ public final class DrawableDB {
|
||||
}
|
||||
}
|
||||
} catch (SQLException ex) {
|
||||
logger.log(Level.SEVERE, "Failed to get group seen", ex); //NON-NLS
|
||||
completeExceptionally(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
// Callback to process result of seen query
|
||||
// Callback to process result of seen query
|
||||
GroupSeenQueryResultProcessor queryResultProcessor = new GroupSeenQueryResultProcessor();
|
||||
|
||||
try {
|
||||
@@ -784,7 +784,7 @@ public final class DrawableDB {
|
||||
return queryResultProcessor.get();
|
||||
} catch (ExecutionException | InterruptedException | TskCoreException ex) {
|
||||
String msg = String.format("Failed to get is group seen for group key %s", groupKey.getValueDisplayName()); //NON-NLS
|
||||
logger.log(Level.WARNING, msg, ex);
|
||||
logger.log(Level.SEVERE, msg, ex);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user