Avoid NPE in case value is null but contains return true.

This commit is contained in:
Guy Korland 2012-11-19 17:35:41 +02:00 committed by Adrian Cole
parent e31dd37f12
commit 190523348e
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class InputSupplierMap<K, V> extends AbstractMap<K, V> {
public V get(Object key) {
InputSupplier<V> value = toMap.get(key);
try {
return (value != null || toMap.containsKey(key)) ? value.getInput() : null;
return value != null ? value.getInput() : null;
} catch (IOException e) {
throw Throwables.propagate(e);
}