Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-20459

Handle null message correctly in JSON RowData deserializer

    XMLWordPrintableJSON

Details

    Description

      Currently if the input message of the `deserialize()` method is null and the deserializer is not ignoring parse errors, `new String(message)` in the exception part will lead to an NPE.

       

      A possible solution is returning null directly if the input message is null, but I'm not sure if this is a correct behavior since a null message can be treated as a "corrupted" message which cannot be deserialized as JSON and should lead to an exception. 

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              renqs Qingsheng Ren
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: