[jbossseam-issues] [JBoss JIRA] Assigned: (JBSEAM-1789) s:transformImageSize maintainRatio=false and only width or height set causes NPE
Pete Muir (JIRA)
jira-events at lists.jboss.org
Sun Aug 12 18:35:18 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1789?page=all ]
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: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list