Bad finally block in SpringLiquibase.afterPropertiesSet()

Description

At the end of the SpringLiquibase.afterPropertiesSet() method, the finally block does not check if the liquibase instance is null or not (as it is null before entering the try block, it could be null on exit). In my case, I have an error occurring in the 2 first lines of the try block (and my liquibase instance is never assigned) and this error is shadowed by a NPE on the first line of the finally block.

Environment

windows, maven, cargo

Reporter

Xavier Dury

Fix versions

Affects versions

Priority

Critical
Configure