# NullPointerException executing a diff-database in 2.0RC1

**URL:** <https://forum.liquibase.org/t/nullpointerexception-executing-a-diff-database-in-2-0rc1/339>\
**Category:** General Discussion\
**Created:** [November 5, 2009, 9:47am UTC](https://forum.liquibase.org/t/nullpointerexception-executing-a-diff-database-in-2-0rc1/339 "2009-11-05T09:47:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcojavibr](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@fcojavibr](https://forum.liquibase.org/u/fcojavibr)\
**Post date:** [November 5, 2009, 9:47am UTC](https://forum.liquibase.org/t/nullpointerexception-executing-a-diff-database-in-2-0rc1/339/1 "2009-11-05T09:47:00Z")

</div>

Liquibase gives a NullPointerException at liquibase.database.typeconversion.core.AbstractTypeConverter.getDataType (AbstractTypeConverter.java:55). I try to execute a diffDatabase where there are changes in datatypes from columns in the db (and new tables and relations).  
The 2.0RC1 generateChangeLog ant task works perfectly with the same hibernate files, generating all datatypes.  
The 1.9.4 diffDatabaseToChangeLog ant task works “perfectly” with the same hibernate files, generating changes without taking into account of datatype changes.

[diffDatabaseToChangeLog] INFO 5/11/09 10:33:liquibase: Could not set remarks reporting on OracleDatabase: liquibase.database.JdbcConnection.setRemarksReporting(boolean) [diffDatabaseToChangeLog] seen table CLIENTES [diffDatabaseToChangeLog] seen table CREDITOS [diffDatabaseToChangeLog] seen table CUENTAS [diffDatabaseToChangeLog] seen table CuentasClientes [diffDatabaseToChangeLog] seen table MOVIMIENTOS\_CUENTAS [diffDatabaseToChangeLog] seen table POLIZAS [diffDatabaseToChangeLog] seen table TAREAS\_EN\_CURSO [diffDatabaseToChangeLog] seen table TIPOS\_CREDITOS [diffDatabaseToChangeLog] seen table TIPOS\_POLIZAS [diffDatabaseToChangeLog] seen table TIPO\_CUENTAS [diffDatabaseToChangeLog] seen table TIPO\_MOVIMIENTOS [diffDatabaseToChangeLog] seen table TIPO\_PERMISOS BUILD FAILED \ant\build.xml:815: java.lang.NullPointerException Caused by: java.lang.NullPointerException at liquibase.database.typeconversion.core.AbstractTypeConverter.getDataType(AbstractTypeConverter.java:55) at liquibase.diff.DiffResult.addMissingColumnChanges(DiffResult.java:740) at liquibase.diff.DiffResult.printChangeLog(DiffResult.java:419) at liquibase.diff.DiffResult.printChangeLog(DiffResult.java:345) at liquibase.integration.ant.DiffDatabaseToChangeLogTask.outputDiff(DiffDatabaseToChangeLogTask.java:12) at liquibase.integration.ant.DiffDatabaseTask.execute(DiffDatabaseTask.java:91) ... 57 more

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [November 5, 2009, 9:47am UTC](https://forum.liquibase.org/t/nullpointerexception-executing-a-diff-database-in-2-0rc1/339/2 "2009-11-05T09:47:00Z")

</div>

I’ll take a look.&nbsp; Thanks!

Nathan

---

<div class="post-metadata">

**Author:** ![fcojavibr](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@fcojavibr](https://forum.liquibase.org/u/fcojavibr)\
**Post date:** [November 5, 2009, 9:47am UTC](https://forum.liquibase.org/t/nullpointerexception-executing-a-diff-database-in-2-0rc1/339/3 "2009-11-05T09:47:00Z")

</div>

The error is that the liquibase.jar included in liquibase-2.0-rc1-bin.zip from the direct link of download page is out of date.  
The class liquibase.diff.DiffResult was updated at 28/10/09 in SVN when the .jar is from 8/10/09.  
I think the error was solved including a not null condition statement.

Can someone compile a snapshot of the project?

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [November 5, 2009, 9:47am UTC](https://forum.liquibase.org/t/nullpointerexception-executing-a-diff-database-in-2-0rc1/339/4 "2009-11-05T09:47:00Z")

</div>

You can get the current build from our buildserver: [http://liquibase.org/ci/latest](http://liquibase.org/ci/latest)

Could you try that out?&nbsp;

Thanks,  
Nathan

---

<div class="post-metadata">

**Author:** ![fcojavibr](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@fcojavibr](https://forum.liquibase.org/u/fcojavibr)\
**Post date:** [November 5, 2009, 9:47am UTC](https://forum.liquibase.org/t/nullpointerexception-executing-a-diff-database-in-2-0rc1/339/5 "2009-11-05T09:47:00Z")

</div>

It works with the last library snapshot (liquibase-2.0-rc2.jar 11/17).

Thanks,  
&nbsp; Paco.

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [November 5, 2009, 9:47am UTC](https://forum.liquibase.org/t/nullpointerexception-executing-a-diff-database-in-2-0rc1/339/6 "2009-11-05T09:47:00Z")

</div>

Thanks for checking it out.&nbsp; Glad it worked

Nathan
