Closed BlockLiu closed 1 year ago
Signed-off-by:
Note: Please complete ALL items in the following checklist.
Current PrintSink will throw NPE when output null values.
fields[i] = String.format("\"%s\":\"%s\"", fieldNames[i], element.getField(i).toString());
Check if the value is null before convert it to string.
N/A
Signed-off-by:
Pre-Checklist
Note: Please complete ALL items in the following checklist.
Purpose
Current PrintSink will throw NPE when output null values.
Approaches
Check if the value is null before convert it to string.
Related Issues
N/A
New Behavior (screenshots if needed)
N/A