From 190523348e8b4f8325de4a26d4c3a3cd64341f06 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); }