public boolean hasNullValue() {
        return valueSize() < 0;
    }
Check whether the value field of this record is null.
@return true if the value is null, false otherwise
clients/src/main/java/org/apache/kafka/common/record/LegacyRecord.java