Fallback to default height and width and also check the getWidth() and getHeight() methods on the image from the Toolkit.
swentel created an issue. See original summary.
git commit -m 'Issue #3212523: Width and height are not always defined'
Different approach, and also catch non image style images.
Comments
Comment #3
swentel commentedDifferent approach, and also catch non image style images.
Comment #4
swentel commented