add null checks in SslContextFactory for _factory, which could be null if reload failed
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
parent
2541f1f648
commit
c40ba69222
|
@ -1131,6 +1131,9 @@ public class SslContextFactory extends AbstractLifeCycle implements Dumpable
|
||||||
|
|
||||||
synchronized (this)
|
synchronized (this)
|
||||||
{
|
{
|
||||||
|
if (_factory == null)
|
||||||
|
throw new IllegalStateException("reload failed SslContext unavailable");
|
||||||
|
|
||||||
return _factory._context;
|
return _factory._context;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1532,6 +1535,9 @@ public class SslContextFactory extends AbstractLifeCycle implements Dumpable
|
||||||
|
|
||||||
synchronized (this)
|
synchronized (this)
|
||||||
{
|
{
|
||||||
|
if (_factory == null)
|
||||||
|
throw new IllegalStateException("reload failed KeyStore unavailable");
|
||||||
|
|
||||||
return _factory._keyStore;
|
return _factory._keyStore;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1553,6 +1559,9 @@ public class SslContextFactory extends AbstractLifeCycle implements Dumpable
|
||||||
|
|
||||||
synchronized (this)
|
synchronized (this)
|
||||||
{
|
{
|
||||||
|
if (_factory == null)
|
||||||
|
throw new IllegalStateException("reload failed TrustStore unavailable");
|
||||||
|
|
||||||
return _factory._trustStore;
|
return _factory._trustStore;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue