mirror of https://github.com/apache/jclouds.git
Avoid NPE in case value is null but contains return true.
This commit is contained in:
parent
e31dd37f12
commit
190523348e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue