[ 
https://issues.apache.org/jira/browse/DDLUTILS-204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Dudziak resolved DDLUTILS-204.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1

Good catch ! Should be fixed now in trunk.

> NullPointerException in PlatformImplBase
> ----------------------------------------
>
>                 Key: DDLUTILS-204
>                 URL: https://issues.apache.org/jira/browse/DDLUTILS-204
>             Project: DdlUtils
>          Issue Type: Bug
>          Components: Core (No specific database)
>            Reporter: Brian Devaney
>            Assignee: Thomas Dudziak
>             Fix For: 1.1
>
>
> 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.
>  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to