diff options
| author | 2015-10-20 18:30:16 +0000 | |
|---|---|---|
| committer | 2015-10-20 18:30:16 +0000 | |
| commit | 096d13faaf19beec8c46edf5df23efc357c9b8a7 (patch) | |
| tree | 729b938033599d0d422ba3ae567cacfe20c56871 | |
| parent | 27c5cbe5a87e618f7f8eafce90559525f4c2d70b (diff) | |
| parent | 3b30aae6e702cbdad4ada69b76e4bc50fa2e161c (diff) | |
Merge "Ignore network policies with missing IMSI." into mnc-dr-dev am: 38463bb950 am: 5d7604323f
am: 3b30aae6e7
* commit '3b30aae6e702cbdad4ada69b76e4bc50fa2e161c':
Ignore network policies with missing IMSI.
| -rw-r--r-- | core/java/android/net/NetworkTemplate.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/net/NetworkTemplate.java b/core/java/android/net/NetworkTemplate.java index 57eef834311a..b7a411e4b646 100644 --- a/core/java/android/net/NetworkTemplate.java +++ b/core/java/android/net/NetworkTemplate.java @@ -288,7 +288,8 @@ public class NetworkTemplate implements Parcelable { } else { final boolean matchesType = (sForceAllNetworkTypes || contains(DATA_USAGE_NETWORK_TYPES, ident.mType)); - return matchesType && ArrayUtils.contains(mMatchSubscriberIds, ident.mSubscriberId); + return matchesType && !ArrayUtils.isEmpty(mMatchSubscriberIds) + && ArrayUtils.contains(mMatchSubscriberIds, ident.mSubscriberId); } } |