Skip to content

Commit

Permalink
NIFI-12376: Fix logic error with bitwise operator in AvroReader
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #8034.
  • Loading branch information
mattyb149 authored and pvillard31 committed Nov 15, 2023
1 parent 76a27b0 commit 685c686
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public RecordReader createRecordReader(final Map<String, String> variables, fina

final Schema avroSchema;
try {
if (recordSchema.getSchemaFormat().isPresent() & recordSchema.getSchemaFormat().get().equals(AvroTypeUtil.AVRO_SCHEMA_FORMAT)) {
if (recordSchema.getSchemaFormat().isPresent() && recordSchema.getSchemaFormat().get().equals(AvroTypeUtil.AVRO_SCHEMA_FORMAT)) {
final Optional<String> textOption = recordSchema.getSchemaText();
if (textOption.isPresent()) {
avroSchema = compiledAvroSchemaCache.get(textOption.get());
Expand Down

0 comments on commit 685c686

Please sign in to comment.