Fix NPE in registeredLookup extractionFn when "optimize" is not provided. (#3064)

This commit is contained in:
Gian Merlino 2016-06-03 10:58:17 -07:00 committed by Slim
parent 2db5f49f35
commit 54139c6815
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class RegisteredLookupExtractionFn implements ExtractionFn
this.replaceMissingValueWith = replaceMissingValueWith;
this.retainMissingValue = retainMissingValue;
this.injective = injective;
this.optimize = optimize;
this.optimize = optimize == null ? true : optimize;
this.lookup = lookup;
}