]
Pete Muir reassigned JBSEAM-1789:
---------------------------------
Assignee: Pete Muir
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
Assigned To: Pete Muir
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: