Merge "Allocate memory before reading from parcel" am: be8881da3b
am: 3dc6ce7e8b
Change-Id: I171da8ec35958bc0b57a0d649fbb7b3d83624910
This commit is contained in:
@@ -110,6 +110,7 @@ public final class AvailableNetworkInfo implements Parcelable {
|
||||
private AvailableNetworkInfo(Parcel in) {
|
||||
mSubId = in.readInt();
|
||||
mPriority = in.readInt();
|
||||
mMccMncs = new ArrayList<>();
|
||||
in.readStringList(mMccMncs);
|
||||
}
|
||||
|
||||
|
||||
@@ -9615,7 +9615,7 @@ public class TelephonyManager {
|
||||
boolean ret = false;
|
||||
try {
|
||||
IOns iOpportunisticNetworkService = getIOns();
|
||||
if (iOpportunisticNetworkService != null) {
|
||||
if (iOpportunisticNetworkService != null && availableNetworks != null) {
|
||||
ret = iOpportunisticNetworkService.updateAvailableNetworks(availableNetworks,
|
||||
pkgForDebug);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user