Merge "Avoid NPE when missing underlyingCaps." am: 6522970c1e
am: e35adbc4d2
Change-Id: Iacd2f15ad31ec7d5c83b21674e1e1f106a5fbd96
This commit is contained in:
@@ -305,6 +305,7 @@ public class Vpn {
|
||||
} else {
|
||||
for (Network underlying : underlyingNetworks) {
|
||||
final NetworkCapabilities underlyingCaps = cm.getNetworkCapabilities(underlying);
|
||||
if (underlyingCaps == null) continue;
|
||||
for (int underlyingType : underlyingCaps.getTransportTypes()) {
|
||||
transportTypes = ArrayUtils.appendInt(transportTypes, underlyingType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user