Fix NullPointerException (#2608)

This commit is contained in:
Hocuri
2023-06-28 23:29:18 +02:00
committed by GitHub
parent 2849555088
commit 2084778be1
@@ -1121,7 +1121,7 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
// for WEBXDC, drafts are just sent out as is.
// for preparations and other cases, cleanup draft soon.
if (msg.getType() != DcMsg.DC_MSG_WEBXDC) {
if (msg == null || msg.getType() != DcMsg.DC_MSG_WEBXDC) {
dcContext.setDraft(dcChat.getId(), null);
}