Skip to content

Commit

Permalink
ConscryptFileDescriptorSocket: Null check SslWrapper object before us…
Browse files Browse the repository at this point in the history
…ing it (#471)
  • Loading branch information
msfjarvis authored and flooey committed Apr 18, 2018
1 parent e9f6d16 commit e271af4
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -1081,8 +1081,10 @@ protected final void finalize() throws Throwable {
if (guard != null) {
Platform.closeGuardWarnIfOpen(guard);
}
synchronized (ssl) {
transitionTo(STATE_CLOSED);
if (ssl != null) {
synchronized (ssl) {
transitionTo(STATE_CLOSED);
}
}
} finally {
super.finalize();
Expand Down

0 comments on commit e271af4

Please sign in to comment.