fix: 关闭sqlSession前判空 (#12538)
Co-authored-by: shiziyuan9527 <yuhao.li@fit2cloud.com>
This commit is contained in:
parent
a7971d3e4f
commit
3fcd00a102
|
@ -920,7 +920,9 @@ public class TestPlanReportService {
|
|||
sqlSession.flushStatements();
|
||||
}
|
||||
} finally {
|
||||
SqlSessionUtils.closeSqlSession(sqlSession, sqlSessionFactory);
|
||||
if (sqlSession != null && sqlSessionFactory != null) {
|
||||
SqlSessionUtils.closeSqlSession(sqlSession, sqlSessionFactory);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue