NumberFormatException running dropAllDatabaseObject ant task on SQLServer

Hi folks,

Once I’d reverse-merged revision 1733 out (following the previous problem: I now get the following error when running the dropAllDatabaseObject task (again, full stacktrace attached):

liquibase.exception.DatabaseException: java.lang.NumberFormatException: null
        at liquibase.Liquibase.dropAll(

This seems to be a problem introduced by revision 1747 ( in MSSQLTypeConverter, the error is caused by the following condition (starting on line 59) as “precision” can be null:

if (columnTypeString.equalsIgnoreCase(“varbinary”) && Long.valueOf(precision) > 8000) {
    precision = “max”;

I’ve attached a patch which just does a null check in the condition. Don’t know if this is correct though.

Best wishes,


It looks right.  I applied the patch, thanks