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