mirror of https://github.com/apache/druid.git
fix null values in wikipedia decoder
This commit is contained in:
parent
71b19af61f
commit
5b6273ac3d
|
@ -199,7 +199,12 @@ class WikipediaIrcDecoder implements IrcDecoder
|
|||
@Override
|
||||
public List<String> getDimension(String dimension)
|
||||
{
|
||||
return ImmutableList.of(dimensions.get(dimension));
|
||||
final String value = dimensions.get(dimension);
|
||||
if(value != null) {
|
||||
return ImmutableList.of(value);
|
||||
} else {
|
||||
return ImmutableList.of();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue