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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user