diff options
-rw-r--r-- | src/mm-base-sim.c | 7 |
1 files changed, 7 insertions, 0 deletions
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, |