am 5371dbf5: Prevent NPE in new API.
* commit '5371dbf5ad8d3fcb8000f2295fb64393e64d44b2': Prevent NPE in new API.
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