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

Commit b38959c8 authored by Jack Yu's avatar Jack Yu Committed by Gerrit Code Review
Browse files

Merge "Fix NullPointerException during setupDataCall"

parents 5a747c1a 014495e4
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());
                        }