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

Commit fbb09ea8 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in trimV4AddrZeros." into ics-mr1

parents 3b5555fc 0faacf06
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -261,6 +261,7 @@ public class NetworkUtils {
     * @return a string propertly trimmed
     */
    public static String trimV4AddrZeros(String addr) {
        if (addr == null) return null;
        String[] octets = addr.split("\\.");
        if (octets.length != 4) return addr;
        StringBuilder builder = new StringBuilder(16);