mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Fix bug with how the final common properties were being added to the results.
This commit is contained in:
parent
388369a4b1
commit
23ebc24e28
@ -212,11 +212,16 @@ final class InterCaseSearchResultsProcessor {
|
|||||||
countAndAddCommonAttributes(corValue, resultId);
|
countAndAddCommonAttributes(corValue, resultId);
|
||||||
|
|
||||||
}
|
}
|
||||||
//Add the final instances
|
//Add the final instance(s)
|
||||||
CommonAttributeValueList value = new CommonAttributeValueList();
|
|
||||||
if (commonAttributeValue != null) {
|
if (commonAttributeValue != null) {
|
||||||
|
int size = commonAttributeValue.getInstanceCount();
|
||||||
|
if (instanceCollatedCommonFiles.containsKey(size)) {
|
||||||
|
instanceCollatedCommonFiles.get(size).addMetadataToList(commonAttributeValue);
|
||||||
|
} else {
|
||||||
|
CommonAttributeValueList value = new CommonAttributeValueList();
|
||||||
value.addMetadataToList(commonAttributeValue);
|
value.addMetadataToList(commonAttributeValue);
|
||||||
instanceCollatedCommonFiles.put(commonAttributeValue.getInstanceCount(), value);
|
instanceCollatedCommonFiles.put(size, value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
LOGGER.log(Level.WARNING, "Error getting artifact instances from database.", ex); // NON-NLS
|
LOGGER.log(Level.WARNING, "Error getting artifact instances from database.", ex); // NON-NLS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user