mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Fix NullPointerException (#2608)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user