From 93d53d2ab5abe1d76fe0e73d3f807b21db0f2601 Mon Sep 17 00:00:00 2001 From: Erwan Croze Date: Mon, 2 Oct 2017 15:34:36 +0200 Subject: [PATCH] Fixing crash in chat view, close #110 --- src/android/org/linphone/ChatFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/org/linphone/ChatFragment.java b/src/android/org/linphone/ChatFragment.java index 1df536951..3c74ea0f0 100644 --- a/src/android/org/linphone/ChatFragment.java +++ b/src/android/org/linphone/ChatFragment.java @@ -701,7 +701,7 @@ public class ChatFragment extends Fragment implements OnClickListener, LinphoneC } private void sendTextMessage() { - if (!LinphoneManager.isInstanciated() || LinphoneManager.getLc() == null) + if (!LinphoneManager.isInstanciated() || LinphoneManager.getLc() == null || searchContactField.getText().toString().length() < 1) return; LinphoneCore.LinphoneLimeState state = LinphoneManager.getLc().getLimeEncryption();