From a535b2fddc8686beeb68fe8fcaa74cf84ae6ba81 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 20 May 2022 13:45:05 +0200 Subject: [PATCH] base-sim: skip loading SIM identifier in eSIM without profiles --- src/mm-base-sim.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mm-base-sim.c b/src/mm-base-sim.c index e1ccedb5..16cdd505 100644 --- a/src/mm-base-sim.c +++ b/src/mm-base-sim.c @@ -803,6 +803,13 @@ mm_base_sim_load_sim_identifier (MMBaseSim *self, return; } + if (IS_ESIM_WITHOUT_PROFILES (self)) { + g_task_return_new_error (task, MM_CORE_ERROR, MM_CORE_ERROR_UNSUPPORTED, + "no SIM identifier in eSIM without profiles"); + g_object_unref (task); + return; + } + MM_BASE_SIM_GET_CLASS (self)->load_sim_identifier ( self, (GAsyncReadyCallback)load_sim_identifier_ready,