Skip to content

Commit

Permalink
Fix errors in manual conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Estrella committed Jul 9, 2019
1 parent 17f3375 commit 643ce9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misk/src/main/kotlin/misk/client/PeerClientFactory.kt
Expand Up @@ -86,7 +86,7 @@ class PeerClientFactory(
.hostnameVerifier(object : HostnameVerifier {
override fun verify(hostname: String?, session: SSLSession?): Boolean {
val ou =
(session!!.peerCertificates.firstOrNull() as? X509Certificate)?.let { peerCert ->
(session?.peerCertificates?.firstOrNull() as? X509Certificate)?.let { peerCert ->
X500Name.parse(peerCert.subjectX500Principal.name).organizationalUnit
}
return appName == ou
Expand Down

0 comments on commit 643ce9d

Please sign in to comment.