s:transformImageSize maintainRatio=false and only width or height set causes NPE
--------------------------------------------------------------------------------
Key: JBSEAM-1789
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1789
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0.BETA1
Reporter: henrik lindberg
Priority: Minor
When using s:transformImageSize without maintainRatio=true (or explicetly set to false)
and only specifying one of width or height a NPE occurs because Image code assumes both to
be available.
The excpetion is thrown in UITransformImageSize.java, on line 45
else
{
image.resize(new Integer(getWidth()), new Integer(getHeight())); // this is
line 45
}
Asking for an image to be rescaled along just one dimension and at the same time not
specifying that ratio should be maintained can't possibly produce a valid result, but
code could produce an error message that it is an illegal request
This is a minor usability issue IMO.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira