[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3917) NPE in Image.getImage() for images with unsupported content type
Daniel Wiell (JIRA)
jira-events at lists.jboss.org
Wed Jan 28 09:07:44 EST 2009
NPE in Image.getImage() for images with unsupported content type
----------------------------------------------------------------
Key: JBSEAM-3917
URL: https://jira.jboss.org/jira/browse/JBSEAM-3917
Project: Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.1.1.GA
Reporter: Daniel Wiell
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.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list