Description
If someone calls setSimpleLogging(false), internal varliaable _log reamins null
As such
DdlToDatabaseTask task = new DdlToDatabaseTask();
task.setSimpleLogging(false);
...
NPE later
Below is my fix (in patch format)
Index: DatabaseTaskBase.java
===================================================================
— DatabaseTaskBase.java (revision 558128)
+++ DatabaseTaskBase.java (working copy)
@@ -345,6 +345,8 @@
{^M
if (_simpleLogging) {^M
initLogging();^M
+ } else {^M
+ _log = LogFactory.getLog(getClass());^M
}^M
^M
if (!hasCommands())^M