Commit f919863d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix crash when node is empty

parent 752e1804
......@@ -732,6 +732,9 @@ QString NodeHelper::persistentIndex(const KMime::Content *node) const
KMime::Content *NodeHelper::contentFromIndex(KMime::Content *node, const QString &persistentIndex) const
{
if (!node) {
return nullptr;
}
KMime::Content *c = node->topLevel();
if (c) {
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment