From 0783968121270eca62f9fb44a215476a447ba31d Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Sat, 11 Sep 2021 11:50:29 +0800 Subject: [PATCH] Guard for null pointer --- src/gui/properties/propertieswidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/properties/propertieswidget.cpp b/src/gui/properties/propertieswidget.cpp index 5f72852f3..0987ca141 100644 --- a/src/gui/properties/propertieswidget.cpp +++ b/src/gui/properties/propertieswidget.cpp @@ -551,6 +551,9 @@ void PropertiesWidget::loadDynamicData() void PropertiesWidget::loadUrlSeeds() { + if (!m_torrent) + return; + m_ui->listWebSeeds->clear(); qDebug("Loading URL seeds"); const QVector hcSeeds = m_torrent->urlSeeds();