Prevent NPE in new API.
bug:8455284 Change-Id: I26ecbd024d1fe001f3af792c4e66409b2968c7ec
This commit is contained in:
parent
6383982582
commit
5371dbf5ad
1 changed files with 1 additions and 1 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue