Skip to content

Commit

Permalink
Fix null check on invalid dates property
Browse files Browse the repository at this point in the history
  • Loading branch information
cavemandaveman committed Jan 24, 2019
1 parent 43aa439 commit 6db5734
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions nifi-standardize-date-nar/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<parent>
<groupId>com.nineteen04labs</groupId>
<artifactId>nifi-standardize-date-bundle</artifactId>
<version>18.09.0</version>
<version>19.01.0</version>
</parent>

<artifactId>nifi-standardize-date-nar</artifactId>
<version>18.09.0</version>
<version>19.01.0</version>
<packaging>nar</packaging>
<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
Expand All @@ -34,7 +34,7 @@
<dependency>
<groupId>com.nineteen04labs</groupId>
<artifactId>nifi-standardize-date-processors</artifactId>
<version>18.09.0</version>
<version>19.01.0</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion nifi-standardize-date-processors/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<parent>
<groupId>com.nineteen04labs</groupId>
<artifactId>nifi-standardize-date-bundle</artifactId>
<version>18.09.0</version>
<version>19.01.0</version>
</parent>

<artifactId>nifi-standardize-date-processors</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<groupId>com.nineteen04labs</groupId>
<artifactId>nifi-standardize-date-bundle</artifactId>
<version>18.09.0</version>
<version>19.01.0</version>
<packaging>pom</packaging>

<modules>
Expand Down

0 comments on commit 6db5734

Please sign in to comment.