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

Commit b55e303e authored by Jack Yu's avatar Jack Yu Committed by android-build-merger
Browse files

Merge "Fix NullPointerException during setupDataCall" am: b38959c8

am: f168f9b3

Change-Id: I3d7e4dccf16a249eb3669b52c3283c46f9108ee5
parents c9c479bb f168f9b3
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1146,14 +1146,12 @@ public class RIL extends BaseCommands implements CommandsInterface {
                            dpi, dataProfile.isModemCognitive(), allowRoaming, isRoaming);
                } else {
                    // IRadio V1.2
                    ArrayList<String> addresses = null;
                    ArrayList<String> dnses = null;
                    ArrayList<String> addresses = new ArrayList<>();
                    ArrayList<String> dnses = new ArrayList<>();
                    if (linkProperties != null) {
                        addresses = new ArrayList<>();
                        for (InetAddress address : linkProperties.getAddresses()) {
                            addresses.add(address.getHostAddress());
                        }
                        dnses = new ArrayList<>();
                        for (InetAddress dns : linkProperties.getDnsServers()) {
                            dnses.add(dns.getHostAddress());
                        }