Uploaded image for project: 'DdlUtils'
  1. DdlUtils
  2. DDLUTILS-204

NullPointerException in PlatformImplBase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1
    • 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.

      Attachments

        Activity

          People

            tomdz Thomas Dudziak
            bdevaney Brian Devaney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: