Fix Telephony crash in the method ImsCallProfile#toString

According to the crash stack, the Telephony crash in the method ImsCallProfile#toString. Add the null check before assessing the class instance.

Bug: 148746493
Test: manual
Change-Id: I156c8ac9f8cd05e678cc38397e84e10f14ce7403
This commit is contained in:
James.cf Lin
2020-03-30 12:00:25 +08:00
parent e7647d94b4
commit 8fb76731ee

View File

@@ -654,7 +654,7 @@ public final class ImsCallProfile implements Parcelable {
return "{ serviceType=" + mServiceType
+ ", callType=" + mCallType
+ ", restrictCause=" + mRestrictCause
+ ", mediaProfile=" + mMediaProfile.toString()
+ ", mediaProfile=" + (mMediaProfile != null ? mMediaProfile.toString() : "null")
+ ", emergencyServiceCategories=" + mEmergencyServiceCategories
+ ", emergencyUrns=" + mEmergencyUrns
+ ", emergencyCallRouting=" + mEmergencyCallRouting