Merge "Fix a theoretical NPE" am: e21dccde6b am: 49021c2c68

Change-Id: Ibf814e81ca984b47b9be1e423e2cde908cf7f193
This commit is contained in:
Treehugger Robot
2020-04-10 17:08:04 +00:00
committed by Automerger Merge Worker

View File

@@ -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) {