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

Commit 0007fa59 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati Committed by Automerger Merge Worker
Browse files

Merge "Merge strList only if the list is not null." into main am: 821dadb2

parents 7c3b315b 821dadb2
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -327,8 +327,14 @@ public class SatelliteServiceUtils {
    @NonNull
    public static List<String> mergeStrLists(List<String> strList1, List<String> strList2) {
        Set<String> mergedStrSet = new HashSet<>();
        if (strList1 != null) {
            mergedStrSet.addAll(strList1);
        }

        if (strList2 != null) {
            mergedStrSet.addAll(strList2);
        }

        return mergedStrSet.stream().toList();
    }