fix null values in wikipedia decoder

This commit is contained in:
Xavier Léauté 2013-08-21 17:56:16 -07:00
parent 71b19af61f
commit 5b6273ac3d
1 changed files with 6 additions and 1 deletions

View File

@ -199,7 +199,12 @@ class WikipediaIrcDecoder implements IrcDecoder
@Override @Override
public List<String> getDimension(String dimension) 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 @Override