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

Commit 821dadb2 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati Committed by Gerrit Code Review
Browse files

Merge "Merge strList only if the list is not null." into main

parents 3cfe868c a1a8c11a
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();
    }