NullPointerException when upgrade from 2.0-rc7 to 2.0.0

Caused by: java.lang.NullPointerException
at liquibase.integration.spring.SpringLiquibase.createLiquibase(SpringLiquibase.java:252)
at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:230)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
… 65 more

Seems it executes to SpringLiquibase.java line 270

    if (this.defaultSchema != null) {             database.setDefaultSchemaName(this.defaultSchema);         }
and defaultSchema is null. It strangely throws NullPointerException. I have to switch back to rc7 for now.

Cheers,
Cheng Wei

It was a bug that made it into 2.0.0 but has been fixed for the 2.0.1 (soon) release  See http://liquibase.jira.com/browse/CORE-802

You can work around the issue for now by including a

     

property in your bean config.

Nathan

Thanks a lot, Nathan.

I would rather wait for release 2.0.1, thanks.

Cheers,
Cheng

2.0.1 is out now, if you would like to try it

Nathan

so quick, thanks.