mirror of https://github.com/apache/druid.git
Fix NullPointerException in PartialDimExtractionFn by explicity checking for dimValue == null, attempt 2
This commit is contained in:
parent
bd9bbf396c
commit
90670a9c7e
|
@ -58,7 +58,7 @@ public class PartialDimExtractionFn implements DimExtractionFn
|
|||
@Override
|
||||
public String apply(String dimValue)
|
||||
{
|
||||
if (dimValue == null) return null;
|
||||
dimValue = (dimValue == null) ? "" : dimValue;
|
||||
Matcher matcher = pattern.matcher(dimValue);
|
||||
return matcher.find() ? dimValue : null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue