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

NPE when OracleValueConverters get unsupported jdbc type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.6.0.Beta2
    • 1.5.2.Final
    • oracle-connector
    • None

      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()
      }
      // ...
      

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

                Created:
                Updated:
                Resolved: