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

This commit is contained in:
James Lin
2021-06-29 02:47:52 +00:00
committed by Android (Google) Code Review

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;
}
}