NullPointerException on ANT task generateChangeLog

I’m using version 2.0.2.

When connection to an MySQL database I get the following message:


java.lang.NullPointerException

at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)




>

>

/>

<generateChangeLog

<p

<p

<p

<p

<p

<p

>

The line in question is shown below:

if (“information_schema”.equalsIgnoreCase(schemaName))

 so I am guess you’ve got something strange with the schema name because even if schemaName was null, that line would not generate an NPE.


Did some debugging with the source and solved my problem. 

The mysql jdbc connector library was outdated, I download the latest and everything works like a charm.

Even if I add defaultSchemaName I still get the same error.

I think there is something wrong with the reading of the tableName, because that is the line where the NPE originates.

If I look in the source this line comes up: 



So it must be the tableName;

Can you share your ant task and properties file contents?