Modified Autopsy code to take into account that getParentInfo() can now return NULL

This commit is contained in:
Eugene Livis 2018-12-07 11:58:54 -05:00
parent efcbbaf0d7
commit 93588af03a

View File

@ -146,7 +146,12 @@ final class EncryptionDetectionDataSourceIngestModule implements DataSourceInges
* Make an ingest inbox message.
*/
StringBuilder detailsSb = new StringBuilder("");
detailsSb.append("File: ").append(volume.getParent().getUniquePath()).append(volume.getName());
detailsSb.append("File: ");
Content parentFile = volume.getParent();
if (parentFile != null) {
detailsSb.append(volume.getParent().getUniquePath());
}
detailsSb.append(volume.getName());
if (artifactType.equals(BlackboardArtifact.ARTIFACT_TYPE.TSK_ENCRYPTION_SUSPECTED)) {
detailsSb.append("<br/>\nEntropy: ").append(calculatedEntropy);
}