diff --git a/src/org/kde/kdeconnect/Helpers/TelephonyHelper.java b/src/org/kde/kdeconnect/Helpers/TelephonyHelper.java index bc7bf1e4..abb231c1 100644 --- a/src/org/kde/kdeconnect/Helpers/TelephonyHelper.java +++ b/src/org/kde/kdeconnect/Helpers/TelephonyHelper.java @@ -46,6 +46,11 @@ public class TelephonyHelper { return Collections.emptyList(); } List subscriptionInfos = subscriptionManager.getActiveSubscriptionInfoList(); + if (subscriptionInfos == null) { + // This happens when there is no SIM card inserted + Log.w(LOGGING_TAG, "Could not get SubscriptionInfos"); + return Collections.emptyList(); + } List subscriptionIDs = new ArrayList<>(subscriptionInfos.size()); for (SubscriptionInfo info : subscriptionInfos) { subscriptionIDs.add(info.getSubscriptionId());