Fix a theoretical NPE
Test: NetworkAgentTests Bug: 153718627 Change-Id: I955b6dac6de48b12696dc640f131f5983ac552df Merged-In: I08f57cce0cd85d5cd66e9a0ef948224290e9200e (cherry picked from commit 31492c708746a51f70c74913a4d6cd97bf06ae63, aosp/1284575)
This commit is contained in:
committed by
Chalard Jean
parent
ec5e7af977
commit
b9db69f623
@@ -812,7 +812,7 @@ public abstract class NetworkAgent {
|
|||||||
* this is the destination the probes are being redirected to, otherwise {@code null}.
|
* this is the destination the probes are being redirected to, otherwise {@code null}.
|
||||||
*/
|
*/
|
||||||
public void onValidationStatus(@ValidationStatus int status, @Nullable Uri redirectUri) {
|
public void onValidationStatus(@ValidationStatus int status, @Nullable Uri redirectUri) {
|
||||||
networkStatus(status, redirectUri.toString());
|
networkStatus(status, null == redirectUri ? "" : redirectUri.toString());
|
||||||
}
|
}
|
||||||
/** @hide TODO delete once subclasses have moved to onValidationStatus */
|
/** @hide TODO delete once subclasses have moved to onValidationStatus */
|
||||||
protected void networkStatus(int status, String redirectUrl) {
|
protected void networkStatus(int status, String redirectUrl) {
|
||||||
|
|||||||
Reference in New Issue
Block a user