Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in TableSnapshotGenerator #49

Closed
flyingtof opened this issue May 5, 2014 · 1 comment
Closed

error in TableSnapshotGenerator #49

flyingtof opened this issue May 5, 2014 · 1 comment
Milestone

Comments

@flyingtof
Copy link

Hi

I'm using liquibase-hibernate3 version 3.3
I encountered this problem.

In class liquibase.ext.hibernate.snapshot.TableSnapshotGenerator. On line 82
primaryKey.setName(table.getPrimaryKey().getName());
, the "table.getPrimaryKey()" statement returns null, ans thus it throws an NPE and the liquibase operation fails.

When replacing this line with
primaryKey.setName(column.getName());
It work better (but not sure at all of potential negative impacts)

Thank's for your job!

@nvoxland nvoxland added this to the 3.4 milestone May 30, 2014
@nvoxland
Copy link
Contributor

Fixed in 3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants