Skip to content

Commit

Permalink
Fix field extractor semantics when no param is given
Browse files Browse the repository at this point in the history
relates #605

(cherry picked from commit 027d1d2)
  • Loading branch information
costin committed Jan 16, 2016
1 parent 9807b48 commit c43ceaa
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -30,7 +30,7 @@ public class ConstantFieldExtractor implements FieldExtractor, SettingsAware {

@Override
public final Object field(Object target) {
return (value != null ? value : extractField(target));
return (value != null ? value : (fieldNames == null || fieldNames.isEmpty() ? NOT_FOUND : extractField(target)));
}

protected Object extractField(Object target) {
Expand Down

0 comments on commit c43ceaa

Please sign in to comment.