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

Field#description() should return a proper java.lang.String when documentation/description is not set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.7.0.CR1
    • 1.7.0.Beta1
    • core-library
    • None

    Description

      When Kafka's ConfigDef renders the HTML or RST documentation representation of the config definition, it requires documentation to be a java.lang.String instance and not being NULL, else NPE happens:

              b.append(key.documentation.replaceAll("\n", "<br>"));
      
              for (String docLine : key.documentation.split("\n")) {
      

      To fix this issue I suggest we change Field#description() to return a String like "No documentation available" or an empty String when description is not set/null.

      I also suggest to open a bug ticket and fix it upstream in Kafka.

      Attachments

        Activity

          People

            rk3rn3r René Kerner
            rk3rn3r René Kerner
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: