Skip to content

Fall back to default base theme for custom theme - #37

Merged
sylvestre merged 1 commit into
opencollab:masterfrom
danilovesky:fix-custom-theme-unmapped-laf
Nov 21, 2026
Merged

sylvestre merged 1 commit into
opencollab:masterfrom
danilovesky:fix-custom-theme-unmapped-laf

Conversation

@danilovesky

Copy link
Copy Markdown
Contributor

Under a look and feel without a plaf mapping (e.g. Aqua, Nimbus, FlatLaf), UIFactory.createTheme had no base theme, so a custom theme that left out a UI threw NPE. It now falls back to the default theme.

Mappings are left unchanged: a Nimbus entry would change the look of existing Nimbus applications.

Fixes #35

Under a look and feel without a plaf mapping, UIFactory.createTheme had
no base theme and a custom theme that left out a UI threw
NullPointerException.

Fixes opencollab#35
@mergify

mergify Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

This pull request is merged.

@sylvestre
sylvestre merged commit 4c36c38 into opencollab:master Nov 21, 2026
7 checks passed
@sylvestre

Copy link
Copy Markdown
Contributor

Thanks for your PR

@danilovesky
danilovesky deleted the fix-custom-theme-unmapped-laf branch November 22, 2026 09:15
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.

Custom theme NPE under unmapped look and feel

2 participants