structurizr / export

Export models and views to external formats.
https://docs.structurizr.com/export
Apache License 2.0
18 stars 28 forks source link

Swallow UnsatisfiedLinkErrors in calculateIconScale #48

Closed dylanwatsonsoftware closed 1 year ago

dylanwatsonsoftware commented 1 year ago

java.awt.image.BufferedImage is used to determine the icon size here but this is not available on the classpath currently in graalvm builds.

There is currently an UnsatisfiedLinkError that is thrown when this happens but since the try/catch handler is only catching Exception, this isn't caught.

So we swallow UnsatisfiedLinkErrors rather than printing the stacktrace in that case, since this is a known error and not one we'd want to spam the logs for.

Resolves #47

simonbrowndotje commented 1 year ago

Thanks!