Bugfix: connection was closed, even when it was never created
authorKai Moritz <kai@coolibri.de>
Wed, 9 Jan 2013 19:57:22 +0000 (20:57 +0100)
committerKai Moritz <kai@coolibri.de>
Tue, 15 Jan 2013 20:41:04 +0000 (21:41 +0100)
commit54b22b88de40795a73397ac8b3725716bc80b6c4
treec309c83f783a1f2e6800ed7fce27f1b722ce0947
parentb9ab24b21d3eb65e2a2208be658ff447c1846894
Bugfix: connection was closed, even when it was never created

Bugreport from: Adriano Machado <adriano.m.machado@hotmail.com>

When only the script is generated and no export is executed, no database-
connection is opend. Nevertheless, the code tried to close it in the
finally-block, which lead to a NPE.
src/main/java/de/juplo/plugins/hibernate4/Hbm2DdlMojo.java