Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #62 from dylanwatsonsoftware/dylanwatsonsoftware-u…
Browse files Browse the repository at this point in the history
…nsupported-awt

Swallow UnsupportedOperationException for Graal native env
  • Loading branch information
simonbrowndotje authored Jun 19, 2023
2 parents 74974f0 + c081fbe commit a4bfe8d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ protected double calculateIconScale(String iconUrl) {
int height = bi.getHeight();

scale = MAX_ICON_SIZE / Math.max(width, height);
} catch (UnsatisfiedLinkError | IIOException e) {
} catch (UnsupportedOperationException | UnsatisfiedLinkError | IIOException e) {
// This is a known issue on native builds since AWT packages aren't available.
// So we just swallow the error and use the default scale
} catch (Exception e) {
Expand All @@ -247,4 +247,4 @@ protected double calculateIconScale(String iconUrl) {
return scale;
}

}
}

0 comments on commit a4bfe8d

Please sign in to comment.