Merge "Catch NPE in getServiceStateForSubscriber" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cc36a441dd
@@ -105,6 +105,7 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.UUID;
|
||||||
import java.util.concurrent.Executor;
|
import java.util.concurrent.Executor;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
@@ -9239,6 +9240,10 @@ public class TelephonyManager {
|
|||||||
}
|
}
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "Error calling ITelephony#getServiceStateForSubscriber", e);
|
Log.e(TAG, "Error calling ITelephony#getServiceStateForSubscriber", e);
|
||||||
|
} catch (NullPointerException e) {
|
||||||
|
AnomalyReporter.reportAnomaly(
|
||||||
|
UUID.fromString("a3ab0b9d-f2aa-4baf-911d-7096c0d4645a"),
|
||||||
|
"getServiceStateForSubscriber " + subId + " NPE");
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user