GP-1004 corrected potential NPE during program close

This commit is contained in:
ghidra1 2022-12-07 11:00:00 -05:00
parent 196a5668d9
commit 8affd9c2e7

View file

@ -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();