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

Commit 55187f18 authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Prevent NPE in new API.

bug:8455284
Change-Id: I26ecbd024d1fe001f3af792c4e66409b2968c7ec
parent b7f4c7b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -121,7 +121,7 @@ public class LinkProperties implements Parcelable {

    public Collection<String> getAllInterfaceNames() {
        Collection interfaceNames = new ArrayList<String>(mStackedLinks.size() + 1);
        interfaceNames.add(new String(mIfaceName));
        if (mIfaceName != null) interfaceNames.add(new String(mIfaceName));
        for (LinkProperties stacked: mStackedLinks.values()) {
            interfaceNames.addAll(stacked.getAllInterfaceNames());
        }