mirror of https://github.com/apache/jclouds.git
check null before adding InputStream to entryset
git-svn-id: http://jclouds.googlecode.com/svn/trunk@474 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
parent
b0f686c1ef
commit
9837cf89b7
|
@ -116,8 +116,9 @@ public class LiveS3InputStreamMap extends BaseS3Map<InputStream> implements
|
|||
public Set<Map.Entry<String, InputStream>> entrySet() {
|
||||
Set<Map.Entry<String, InputStream>> entrySet = new HashSet<Map.Entry<String, InputStream>>();
|
||||
for (String key : keySet()) {
|
||||
Map.Entry<String, InputStream> entry = new Entry(key, get(key));
|
||||
entrySet.add(entry);
|
||||
InputStream input = get(key);
|
||||
if (input != null)
|
||||
entrySet.add(new Entry(key, input));
|
||||
}
|
||||
return entrySet;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue