dxa-web-application-java
dxa-web-application-java copied to clipboard
Nullpointer exception when using SVG images in MultimediaComponent
I have created a new MultimediaComponent and uploaded a SVG image to it. When using this MultimediaComponent in a Component and publish it to my page, the image wont be displayed.
The nullpointer happens in the image resize function at
int sourceW = originalImage.getWidth();
Width and height of a SVG image are not filled because it has no defined width and height - its scale-able. Therefor it cant be resized.