Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-3587

NPE when OracleValueConverters get unsupported jdbc type

    XMLWordPrintable

Details

    Description

      In the schemaBuilder method implementation of OracleValueConverters, if the type value of Column does not meet the specified value, the default logic will obtain the default schema implementation, but it is also possible to obtain a null value, and the subsequent log print information will throw NPE.

      public SchemaBuilder schemaBuilder(Column column) {
      // ...
      switch (column.jdbcType()) {
      // ...
       default: {
      SchemaBuilder builder = super.schemaBuilder(column);
      // This builder may be a null value
       logger.debug("JdbcValueConverters returned '{}' for column '{}'", builder.getClass().getName()
      }
      // ...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            winger2049 winger chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: