prevent exception if search tab is closed

dbus-notify
Zlatin Balevsky 2022-06-06 10:00:32 +01:00
parent 3261147ed5
commit 60bed8ad5a
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 4 additions and 1 deletions

View File

@ -425,7 +425,10 @@ class MainFrameModel {
void onUIResultBatchEvent(UIResultBatchEvent e) {
MVCGroup resultsGroup = results.get(e.uuid)
resultsGroup?.model?.handleResultBatch(e.results)
if (resultsGroup == null)
return
if (resultsGroup.isAlive())
resultsGroup.model.handleResultBatch(e.results)
}
void onDownloadStartedEvent(DownloadStartedEvent e) {