Merge "[UCE] Fix NPE in the RcsContactUceCapability" into sc-dev am: fb0faec367

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15127245

Change-Id: I0e8235780dc495d6e445969f5273b2e8f1564f06
This commit is contained in:
James Lin
2021-06-29 02:50:08 +00:00
committed by Automerger Merge Worker

View File

@@ -331,7 +331,7 @@ public final class RcsContactUceCapability implements Parcelable {
return null;
}
for (RcsContactPresenceTuple tuple : mPresenceTuples) {
if (tuple.getServiceId().equals(serviceId)) {
if (tuple.getServiceId() != null && tuple.getServiceId().equals(serviceId)) {
return tuple;
}
}