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

Commit 78733ad4 authored by James.cf Lin's avatar James.cf Lin
Browse files

[UCE] Fix NPE in the RcsContactUceCapability

When get the RcsContactPresenceTuple from the RcsContactUceCapability, it should check whether the servier ID is null or not

Bug: 191836903
Test: atest RcsContactUceCapabilityTest
Change-Id: I987c6f1fbcabfe64688f1d71210c83b6c4d8d9e0
parent ab2e0e83
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
            }
        }