NIFI-5145: Fixed MockPropertyValue to call the correct evaluateAttributeExpressions when FF is null

Signed-off-by: Matthew Burgess <mattyb149@apache.org>

This closes #2717
This commit is contained in:
Matthew Burgess 2018-05-17 20:48:36 -04:00
parent 6bb43bd471
commit 29e96ed0e0
1 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@
*/ */
package org.apache.nifi.util; package org.apache.nifi.util;
import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@ -210,7 +209,7 @@ public class MockPropertyValue implements PropertyValue {
* raises an error which makes it not mimick real world behavior. * raises an error which makes it not mimick real world behavior.
*/ */
if (flowFile == null) { if (flowFile == null) {
return evaluateAttributeExpressions(new HashMap<>()); return evaluateAttributeExpressions(null, (Map<String,String>)null);
} }
return evaluateAttributeExpressions(flowFile, null, null); return evaluateAttributeExpressions(flowFile, null, null);
} }