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
parent 405ca5648a
commit 0c38cd584a
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);
}