[Mainline] Migrate TextUtils#emptyIfNull

Bug: 177477620
Test: mma
Change-Id: I0be23ae486e86864d7b3225c68ef2cfe7c7247af
This commit is contained in:
Serik Beketayev
2021-01-13 17:37:09 -08:00
parent 66bf5f05e1
commit ae19ced210

View File

@@ -686,7 +686,7 @@ public class NetworkDiagnostics {
mHostname = hostname;
mMeasurement.description = "DNS TLS dst{" + mTarget.getHostAddress() + "} hostname{"
+ TextUtils.emptyIfNull(mHostname) + "}";
+ (mHostname == null ? "" : mHostname) + "}";
}
private SSLSocket setupSSLSocket() throws IOException {