mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 02:07:42 +00:00
Merge pull request #3281 from wschaeferB/3300-FixAddTagNPE
3300 fix add tag npe
This commit is contained in:
commit
c8cfd853b3
@ -179,7 +179,7 @@ final class TagNameDefinition implements Comparable<TagNameDefinition> {
|
|||||||
return displayName + "," + description + "," + color.name() + "," + knownStatus.toString();
|
return displayName + "," + description + "," + color.name() + "," + knownStatus.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private TagName saveToCase(SleuthkitCase caseDb) {
|
TagName saveToCase(SleuthkitCase caseDb) {
|
||||||
TagName tagName = null;
|
TagName tagName = null;
|
||||||
try {
|
try {
|
||||||
tagName = caseDb.addOrUpdateTagName(displayName, description, color, knownStatus);
|
tagName = caseDb.addOrUpdateTagName(displayName, description, color, knownStatus);
|
||||||
|
@ -128,6 +128,9 @@ public class TagsManager implements Closeable {
|
|||||||
*/
|
*/
|
||||||
TagsManager(SleuthkitCase caseDb) {
|
TagsManager(SleuthkitCase caseDb) {
|
||||||
this.caseDb = caseDb;
|
this.caseDb = caseDb;
|
||||||
|
for (TagNameDefinition tagName : TagNameDefinition.getTagNameDefinitions()) {
|
||||||
|
tagName.saveToCase(caseDb);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user