[seam-commits] Seam SVN: r8591 - trunk/ui/src/main/java/org/jboss/seam/ui/graphicImage.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue Aug 5 15:21:04 EDT 2008


Author: pete.muir at jboss.org
Date: 2008-08-05 15:21:04 -0400 (Tue, 05 Aug 2008)
New Revision: 8591

Modified:
   trunk/ui/src/main/java/org/jboss/seam/ui/graphicImage/GraphicImageResource.java
Log:
JBSEAM-3011

Modified: trunk/ui/src/main/java/org/jboss/seam/ui/graphicImage/GraphicImageResource.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/graphicImage/GraphicImageResource.java	2008-08-05 19:07:33 UTC (rev 8590)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/graphicImage/GraphicImageResource.java	2008-08-05 19:21:04 UTC (rev 8591)
@@ -60,7 +60,7 @@
       String pathInfo = request.getPathInfo().substring(getResourcePath().length() + 1,
                request.getPathInfo().lastIndexOf("."));
       ImageWrapper image = GraphicImageStore.instance().remove(pathInfo);
-      if (image != null)
+      if (image != null && image.getImage() != null)
       {
          response.setContentType(image.getContentType().getMimeType());
          response.setStatus(HttpServletResponse.SC_OK);




More information about the seam-commits mailing list