[seam-issues] [JBoss JIRA] Updated: (JBSEAM-3917) NPE in Image.getImage() for images with unsupported content type
Alessandro Lazarotti (JIRA)
jira-events at lists.jboss.org
Fri Jan 14 07:47:49 EST 2011
[ https://issues.jboss.org/browse/JBSEAM-3917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alessandro Lazarotti updated JBSEAM-3917:
-----------------------------------------
Fix Version/s: 2.2.1.Final
Component/s: Documentation Issues
Affects: [Documentation (Ref Guide, User Guide, etc.), Release Notes]
JBoss Forum Reference: http://seamframework.org/Community/WhySgraphicImageCanNotShowBmp
> NPE in Image.getImage() for images with unsupported content type
> ----------------------------------------------------------------
>
> Key: JBSEAM-3917
> URL: https://issues.jboss.org/browse/JBSEAM-3917
> Project: Seam
> Issue Type: Bug
> Components: Core, Documentation Issues
> Affects Versions: 2.1.1.GA
> Reporter: Daniel Wiell
> Assignee: Alessandro Lazarotti
> Fix For: 2.2.1.Final
>
>
> Image.readImage(InputStream) sets contentType to null if the type of the image is unknown (say a bmp).
> When invoking Image.getImage(), a NPE is thrown:
> java.lang.NullPointerException
> at org.jboss.seam.ui.graphicImage.Image.getImage(Image.java:154)
> ImageIO.write(bufferedImage, getContentType().getImageFormatName(), outputStream);
> getContentType() returns null.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list