From 0c38cd584af0956d0e29c3415bde504c11d26ba5 Mon Sep 17 00:00:00 2001 From: Guy Korland Date: Mon, 19 Nov 2012 17:35:41 +0200 Subject: [PATCH] Avoid NPE in case value is null but contains return true. --- core/src/main/java/org/jclouds/collect/InputSupplierMap.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/jclouds/collect/InputSupplierMap.java b/core/src/main/java/org/jclouds/collect/InputSupplierMap.java index c72c94dcf6..f1c8767adb 100644 --- a/core/src/main/java/org/jclouds/collect/InputSupplierMap.java +++ b/core/src/main/java/org/jclouds/collect/InputSupplierMap.java @@ -68,7 +68,7 @@ public class InputSupplierMap extends AbstractMap { public V get(Object key) { InputSupplier 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); }