mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 11:07:43 +00:00
Error-proof HashLookupSettingsPanel.isLocalIngestJobEvent()
This commit is contained in:
parent
3cdfbf6934
commit
de360793f9
@ -229,7 +229,16 @@ public final class HashLookupSettingsPanel extends IngestModuleGlobalSettingsPan
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean isLocalIngestJobEvent(PropertyChangeEvent evt) {
|
private boolean isLocalIngestJobEvent(PropertyChangeEvent evt) {
|
||||||
return evt instanceof AutopsyEvent && ((AutopsyEvent)evt).getSourceType() == AutopsyEvent.SourceType.LOCAL;
|
if (evt instanceof AutopsyEvent) {
|
||||||
|
AutopsyEvent event = (AutopsyEvent) evt;
|
||||||
|
if (event.getSourceType() == AutopsyEvent.SourceType.LOCAL) {
|
||||||
|
String eventType = event.getPropertyName();
|
||||||
|
return (eventType.equals(IngestManager.IngestJobEvent.STARTED.toString())
|
||||||
|
|| eventType.equals(IngestManager.IngestJobEvent.CANCELLED.toString())
|
||||||
|
|| eventType.equals(IngestManager.IngestJobEvent.COMPLETED.toString()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user