From 6db57345b13bb2169b68d5f7fe21891c202b961b Mon Sep 17 00:00:00 2001 From: cavemandaveman Date: Thu, 24 Jan 2019 14:17:02 -0600 Subject: [PATCH] Fix null check on invalid dates property --- nifi-standardize-date-nar/pom.xml | 6 +++--- nifi-standardize-date-processors/pom.xml | 2 +- .../processors/standardizedate/StandardizeDate.java | 2 +- pom.xml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nifi-standardize-date-nar/pom.xml b/nifi-standardize-date-nar/pom.xml index 8f8e58f..6e60841 100644 --- a/nifi-standardize-date-nar/pom.xml +++ b/nifi-standardize-date-nar/pom.xml @@ -19,11 +19,11 @@ com.nineteen04labs nifi-standardize-date-bundle - 18.09.0 + 19.01.0 nifi-standardize-date-nar - 18.09.0 + 19.01.0 nar true @@ -34,7 +34,7 @@ com.nineteen04labs nifi-standardize-date-processors - 18.09.0 + 19.01.0 diff --git a/nifi-standardize-date-processors/pom.xml b/nifi-standardize-date-processors/pom.xml index 6685cf6..6882744 100644 --- a/nifi-standardize-date-processors/pom.xml +++ b/nifi-standardize-date-processors/pom.xml @@ -20,7 +20,7 @@ com.nineteen04labs nifi-standardize-date-bundle - 18.09.0 + 19.01.0 nifi-standardize-date-processors diff --git a/nifi-standardize-date-processors/src/main/java/com/nineteen04labs/processors/standardizedate/StandardizeDate.java b/nifi-standardize-date-processors/src/main/java/com/nineteen04labs/processors/standardizedate/StandardizeDate.java index 9232361..4160715 100644 --- a/nifi-standardize-date-processors/src/main/java/com/nineteen04labs/processors/standardizedate/StandardizeDate.java +++ b/nifi-standardize-date-processors/src/main/java/com/nineteen04labs/processors/standardizedate/StandardizeDate.java @@ -96,7 +96,7 @@ public void onTrigger(final ProcessContext context, final ProcessSession session } try { final String invalidDatesString = context.getProperty(StandardizeDateProperties.INVALID_DATES).evaluateAttributeExpressions(flowFile).getValue(); - if (invalidDatesString == null) { + if ("".equals(invalidDatesString) || invalidDatesString == null) { session.transfer(flowFile, StandardizeDateRelationships.REL_BYPASS); return; } diff --git a/pom.xml b/pom.xml index ca5ec54..e1f12cc 100644 --- a/pom.xml +++ b/pom.xml @@ -18,7 +18,7 @@ com.nineteen04labs nifi-standardize-date-bundle - 18.09.0 + 19.01.0 pom