Prevent NPE in new API.
bug:8455284 Change-Id: I26ecbd024d1fe001f3af792c4e66409b2968c7ec
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user