1
0
mirror of https://github.com/yurisieucuti/treble_evolution.git synced 2024-11-24 08:36:19 +00:00
treble_evolution/patches/platform_frameworks_opt_telephony/0010-Fix-NPE-with-1.0-and-1.1-CardStatus.patch
2024-04-24 15:13:17 +00:00

27 lines
1.2 KiB
Diff

From ba82610406b6909df70434145bf4bc808ce1ffe1 Mon Sep 17 00:00:00 2001
From: Christian Hoffmann <chrmhoffmann@gmail.com>
Date: Fri, 21 Oct 2022 12:58:04 +0200
Subject: [PATCH 10/16] Fix NPE with 1.0 and 1.1 CardStatus
Change-Id: I965f6ef419b7aef828da02f5d4745bd33d09fe3a
---
src/java/com/android/internal/telephony/RadioResponse.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/java/com/android/internal/telephony/RadioResponse.java b/src/java/com/android/internal/telephony/RadioResponse.java
index 0bc29583fb..71bb2e5b75 100644
--- a/src/java/com/android/internal/telephony/RadioResponse.java
+++ b/src/java/com/android/internal/telephony/RadioResponse.java
@@ -1879,6 +1879,8 @@ public class RadioResponse extends IRadioResponse.Stub {
if (rr != null) {
IccCardStatus iccCardStatus = RILUtils.convertHalCardStatus(cardStatus);
+ IccSlotPortMapping slotPortMapping = new IccSlotPortMapping();
+ iccCardStatus.mSlotPortMapping = slotPortMapping;
mRil.riljLog("responseIccCardStatus: from HIDL: " + iccCardStatus);
if (responseInfo.error == RadioError.NONE) {
sendMessageResponse(rr.mResult, iccCardStatus);
--
2.25.1