mirror of
https://github.com/NationalSecurityAgency/ghidra
synced 2024-08-27 13:03:12 +00:00
GP-1004 corrected potential NPE during program close
This commit is contained in:
parent
196a5668d9
commit
8affd9c2e7
|
@ -1291,6 +1291,11 @@ public class AutoAnalysisManager implements DomainObjectListener, DomainObjectCl
|
|||
|
||||
private void saveTaskTimes() {
|
||||
|
||||
Program p = program; // program may get cleared by domain object change event
|
||||
if (p == null || p.isClosed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
StoredAnalyzerTimes times = StoredAnalyzerTimes.getStoredAnalyzerTimes(program);
|
||||
|
||||
String taskNames[] = getTimedTasks();
|
||||
|
|
Loading…
Reference in a new issue