Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3f89d0c authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Fix potential NPE in telephony registry dumpsys.

There is no guarantee that mImsCallDisconnectCause will be non-null, so
we should not be calling toString here.

Test: Compile/build
Fixes: 129251351
Change-Id: I8b983ce8fa7f5316bc474ffbd67052ae0df4d75d
parent 09426de6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1883,7 +1883,7 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub {
                pw.println("mDataConnectionState=" + mDataConnectionState[i]);
                pw.println("mCellLocation=" + mCellLocation[i]);
                pw.println("mCellInfo=" + mCellInfo.get(i));
                pw.println("mImsCallDisconnectCause=" + mImsReasonInfo.get(i).toString());
                pw.println("mImsCallDisconnectCause=" + mImsReasonInfo.get(i));
                pw.decreaseIndent();
            }
            pw.println("mCallNetworkType=" + mCallNetworkType);