From 494baf59e48e38f92e959ee1aac763d2caca39ce Mon Sep 17 00:00:00 2001
From: Sylvain Berfini <sylvain.berfini@belledonne-communications.com>
Date: Wed, 29 Aug 2018 11:43:49 +0200
Subject: [PATCH] Improved abort message when creating a core without context
 on Android

---
 coreapi/linphonecore.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/coreapi/linphonecore.c b/coreapi/linphonecore.c
index dab23c275e..4e2454faf2 100644
--- a/coreapi/linphonecore.c
+++ b/coreapi/linphonecore.c
@@ -2342,6 +2342,8 @@ static void linphone_core_init(LinphoneCore * lc, LinphoneCoreCbs *cbs, LpConfig
 #ifdef __ANDROID__
 	if (system_context)
 		lc->platform_helper = LinphonePrivate::createAndroidPlatformHelpers(lc, system_context);
+	else
+		ms_fatal("You must provide the Android's app context when creating the core!");
 #elif TARGET_OS_IPHONE
 	lc->platform_helper = LinphonePrivate::createIosPlatformHelpers(lc, system_context);
 #endif
-- 
GitLab