Fix crash when no linphoneactivity is present

This commit is contained in:
Guillaume BIENKOWSKI 2015-01-22 16:26:01 +01:00
parent 093afe65e5
commit 4bb6b919b9

View file

@ -851,7 +851,7 @@ public class LinphoneManager implements LinphoneListener {
} }
// Give user some hint about the error... // 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); LinphoneActivity.instance().displayCustomToast("Call errored: " + message, Toast.LENGTH_LONG);
} }
} }