Merge "Check for null executor" into qt-r1-dev

This commit is contained in:
TreeHugger Robot
2019-06-25 01:23:24 +00:00
committed by Android (Google) Code Review

View File

@@ -10874,6 +10874,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);
}));