Skip to content

Commit

Permalink
CallMetadataCollector: getActiveSubscriptionInfo() can return null
Browse files Browse the repository at this point in the history
Issue: #513

Signed-off-by: Andrew Gunnerson <[email protected]>
  • Loading branch information
chenxiaolong committed Mar 14, 2024
1 parent 05dfcbc commit 3107a9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ class CallMetadataCollector(
val subscriptionInfo = subscriptionManager.getActiveSubscriptionInfo(subscriptionId)

simCount = subscriptionManager.activeSubscriptionInfoCount
simSlot = subscriptionInfo.simSlotIndex + 1
simSlot = subscriptionInfo?.let { it.simSlotIndex + 1 }
}

val (callLogNumber, callLogName) = getCallLogDetails(parentDetails, allowBlockingCalls)
Expand Down

0 comments on commit 3107a9c

Please sign in to comment.