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

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

      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.

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

                Created:
                Updated:
                Resolved: