Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
In the PlatformImplBase class in the method:
public void processChange(Database currentModel,
CreationParameters params,
RecreateTableChange change) throws IOException
there is a case where the code will generate a NullPointerException. Starting with lines 1442 (as of the latest version in trunk):
Map parameters = (params == null ? null : params.getParametersFor(targetTable));
if (canMigrateData)
{ .... }else
{ getSqlBuilder().dropTable(changedTable); getSqlBuilder().createTable(currentModel, targetTable, params.getParametersFor(targetTable)); }there is a check to make sure that the params value is not null. If, however, the canMigrateData flag is false, then the dropTable and createTable methods are called and params.getParamtersFor... is called. If params is null, the exception is thrown.