Avoid NPE on LettuceConnectionFactory destroy
This commit is contained in:
@@ -115,7 +115,9 @@ public class LettuceConnectionFactory implements InitializingBean, DisposableBea
|
|||||||
*/
|
*/
|
||||||
public void resetConnection() {
|
public void resetConnection() {
|
||||||
synchronized (this.connectionMonitor) {
|
synchronized (this.connectionMonitor) {
|
||||||
connection.close();
|
if(this.connection != null) {
|
||||||
|
this.connection.close();
|
||||||
|
}
|
||||||
this.connection = null;
|
this.connection = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user