Merge "Check for null executor" into qt-r1-dev am: 2f952a8462

am: aae64e716d

Change-Id: I95963891a90e8e04e05b986d3e4b1d6be6f72981
This commit is contained in:
Sooraj Sasindran
2019-06-25 02:31:58 -07:00
committed by android-build-merger

View File

@@ -10922,6 +10922,9 @@ public class TelephonyManager {
try {
IOns iOpportunisticNetworkService = getIOns();
if (iOpportunisticNetworkService == null || availableNetworks == null) {
if (executor == null || callback == null) {
return;
}
Binder.withCleanCallingIdentity(() -> executor.execute(() -> {
callback.accept(UPDATE_AVAILABLE_NETWORKS_INVALID_ARGUMENTS);
}));