Merge "Check for null executor" into qt-r1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2f952a8462
@@ -10874,6 +10874,9 @@ public class TelephonyManager {
|
|||||||
try {
|
try {
|
||||||
IOns iOpportunisticNetworkService = getIOns();
|
IOns iOpportunisticNetworkService = getIOns();
|
||||||
if (iOpportunisticNetworkService == null || availableNetworks == null) {
|
if (iOpportunisticNetworkService == null || availableNetworks == null) {
|
||||||
|
if (executor == null || callback == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
Binder.withCleanCallingIdentity(() -> executor.execute(() -> {
|
Binder.withCleanCallingIdentity(() -> executor.execute(() -> {
|
||||||
callback.accept(UPDATE_AVAILABLE_NETWORKS_INVALID_ARGUMENTS);
|
callback.accept(UPDATE_AVAILABLE_NETWORKS_INVALID_ARGUMENTS);
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user