Commit 98c06a67 authored by David Jarvie's avatar David Jarvie
Browse files

Guard against null dereference

parent 3f9bdb3f
......@@ -1228,7 +1228,7 @@ void EditEmailAlarmDlg::setAction(KAEvent::SubAction action, const AlarmText& al
void EditEmailAlarmDlg::setEmailFields(uint fromID, const KCalCore::Person::List& addresses,
const QString& subject, const QStringList& attachments)
if (fromID)
if (fromID && mEmailFromList)
if (!addresses.isEmpty())
mEmailToEdit->setText(KAEvent::joinEmailAddresses(addresses, QStringLiteral(", ")));
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