From 4bb6b919b904c130fee4547e1acc92d35ec35f43 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Thu, 22 Jan 2015 16:26:01 +0100 Subject: [PATCH] Fix crash when no linphoneactivity is present --- src/org/linphone/LinphoneManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/linphone/LinphoneManager.java b/src/org/linphone/LinphoneManager.java index 8047283e4..824a9d9a6 100644 --- a/src/org/linphone/LinphoneManager.java +++ b/src/org/linphone/LinphoneManager.java @@ -851,7 +851,7 @@ public class LinphoneManager implements LinphoneListener { } // Give user some hint about the error... - if (state == State.Error) { + if (state == State.Error && LinphoneActivity.isInstanciated() ) { LinphoneActivity.instance().displayCustomToast("Call errored: " + message, Toast.LENGTH_LONG); } }