Skip to content

Fixed crash on macOS when opening designer#3089

Merged
breiler merged 1 commit intowinder:masterfrom
dnikodem84:FixDesignerCrash
Apr 25, 2026
Merged

Fixed crash on macOS when opening designer#3089
breiler merged 1 commit intowinder:masterfrom
dnikodem84:FixDesignerCrash

Conversation

@dnikodem84
Copy link
Copy Markdown
Contributor

Fixed crash where SvgIconLoader.class.getResourceAsStream("/img/zoom-in.svg") was doing a getResourceAsStream against ugs-core's classloader, but the icons actually live in ugs-designer (which sits in a downstream module classloader ugs-core can't see under the NetBeans Platform), so loadImageIcon came back empty, .orElse(null) handed a null to Toolkit.createCustomCursor, and mac's CCustomCursor NPE'd on File -> New Design

Fixed crash where SvgIconLoader.class.getResourceAsStream("/img/zoom-in.svg") was doing a getResourceAsStream against ugs-core's classloader, but the icons actually live in ugs-designer (which sits in a downstream module classloader ugs-core can't see under the NetBeans Platform), so loadImageIcon came back empty, .orElse(null) handed a null to Toolkit.createCustomCursor, and mac's CCustomCursor NPE'd on File -> New Design
@breiler breiler merged commit 34e3ffe into winder:master Apr 25, 2026
1 check passed
@breiler
Copy link
Copy Markdown
Collaborator

breiler commented Apr 25, 2026

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants