From 59c8aea42a2d13af605472c8a7fdce62630944cc Mon Sep 17 00:00:00 2001 From: Christos Stathis Date: Wed, 22 Feb 2012 16:16:31 +0200 Subject: [PATCH] Fix for IE bug with null headers (issue #2057) --- src/gr/grnet/pithos/web/client/foldertree/File.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gr/grnet/pithos/web/client/foldertree/File.java b/src/gr/grnet/pithos/web/client/foldertree/File.java index 4956981..f832e94 100644 --- a/src/gr/grnet/pithos/web/client/foldertree/File.java +++ b/src/gr/grnet/pithos/web/client/foldertree/File.java @@ -225,6 +225,8 @@ public class File extends Resource { private void populate(String _owner, Response response) { this.owner = _owner; for (Header h : response.getHeaders()) { + if (h == null) + continue; //IE bug. h cannot be null in the general case String header = h.getName(); if (header.startsWith("X-Object-Meta-")) meta.put(URL.decodePathSegment(header.substring("X-Object-Meta-".length())), URL.decodePathSegment(h.getValue())); -- 1.7.10.4