NIFI-5145 Changed the override in MockPropertyValue to use a better way of passing over null flowfiles in evaluateExpressionLanguage.

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

This closes #2714
This commit is contained in:
Mike Thomsen 2018-05-17 12:47:53 -04:00 committed by Matthew Burgess
parent 8aaa51af31
commit 6bb43bd471
1 changed files with 2 additions and 1 deletions

View File

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