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

Commit eb91e78f authored by Andrew Stadler's avatar Andrew Stadler Committed by Android (Google) Code Review
Browse files

Merge "Fix crash when proxy exclusion list is null."

parents d092f380 ac19f24c
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -41,13 +41,17 @@ public class ProxyProperties implements Parcelable {
        if (source != null) {
            mProxy = source.getAddress();
            mPort = source.getPort();
            mExclusionList = new String(source.getExclusionList());
            String exclusionList = source.getExclusionList();
            if (exclusionList != null) {
                mExclusionList = new String(exclusionList);
            }
        }
    }

    public InetAddress getAddress() {
        return mProxy;
    }

    public void setAddress(InetAddress proxy) {
        mProxy = proxy;
    }
@@ -55,6 +59,7 @@ public class ProxyProperties implements Parcelable {
    public int getPort() {
        return mPort;
    }

    public void setPort(int port) {
        mPort = port;
    }
@@ -62,6 +67,7 @@ public class ProxyProperties implements Parcelable {
    public String getExclusionList() {
        return mExclusionList;
    }

    public void setExclusionList(String exclusionList) {
        mExclusionList = exclusionList;
    }
@@ -121,5 +127,4 @@ public class ProxyProperties implements Parcelable {
                return new ProxyProperties[size];
            }
        };

};
}