Fix KMail crash when adding too many recipients

Authored by marten on Apr 17 2020, 7:55 PM.

Description

Fix KMail crash when adding too many recipients

MultiplyingLineView::addLine() returns a null pointer if the limit
has been reached, but MultiplyingLineView::slotReturnPressed() uses
the pointer without a null check.

A quick crash fix. Still needs further investigation because the "too
many recipients" error box is shown when it should not be. See D28876
for more information.

Differential Revision: https://phabricator.kde.org/D28876

(cherry picked from commit 86a8cc0c668f1739e8d1c7d472c870547ff3d71c)

Details

Committed
mlaurentApr 18 2020, 7:36 AM
Differential Revision
D28876: Fix KMail crash when adding too many recipients
Parents
R89:78fffa883a98: Use isEmpty
Branches
Unknown
Tags
Unknown