mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 16:36:15 +00:00
Remove unnecessary synchronization from Case.addReport()
This commit is contained in:
parent
54e1b2a2fc
commit
e082584959
@ -1182,13 +1182,11 @@ public class Case implements SleuthkitCase.ErrorObserver {
|
|||||||
*/
|
*/
|
||||||
public void addReport(String localPath, String srcModuleName, String reportName) throws TskCoreException {
|
public void addReport(String localPath, String srcModuleName, String reportName) throws TskCoreException {
|
||||||
Report report = this.db.addReport(localPath, srcModuleName, reportName);
|
Report report = this.db.addReport(localPath, srcModuleName, reportName);
|
||||||
synchronized (this) {
|
try {
|
||||||
try {
|
Case.pcs.firePropertyChange(Events.REPORT_ADDED.toString(), null, report);
|
||||||
Case.pcs.firePropertyChange(Events.REPORT_ADDED.toString(), null, report);
|
} catch (Exception ex) {
|
||||||
} catch (Exception ex) {
|
String errorMessage = String.format("A Case %s listener threw an exception", Events.REPORT_ADDED.toString());
|
||||||
String errorMessage = String.format("A Case %s listener threw an exception", Events.REPORT_ADDED.toString());
|
logger.log(Level.SEVERE, errorMessage, ex);
|
||||||
logger.log(Level.SEVERE, errorMessage, ex);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user