E53F Fix NPE when restoring layout to default value by ptziegler · Pull Request #1265 · eclipse-windowbuilder/windowbuilder · GitHub
[go: up one dir, main page]

Skip to content

Fix NPE when restoring layout to default value#1265

Merged
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:swing-layout-npe
Oct 11, 2025
Merged

Fix NPE when restoring layout to default value#1265
ptziegler merged 1 commit intoeclipse-windowbuilder:masterfrom
ptziegler:swing-layout-npe

Conversation

@ptziegler
Copy link
Contributor

The changes introduced with 7ff0657 cause an exception, if no layout is set. Instead of an empty string, the "null" string is used to describe the implict layout. This breaks the selection on the preference page.

If no layout with this id is found, the call to setDefaultLayout() fails with a NullPointerException, which is the case for the default selection or if a layout no longer exists.

Using the GridLayout as an implicit layout is also not the correct behavior. If this is the desired behavior, the GridLayout must be selected in the preference page.

@ptziegler ptziegler added this to the 1.22.0 milestone Oct 11, 2025
The changes introduced with 7ff0657
cause an exception, if no layout is set. Instead of an empty string, the
"null" string is used to describe the implict layout. This breaks the
selection on the preference page.

If no layout with this id is found, the call to setDefaultLayout() fails
with a NullPointerException, which is the case for the default selection
or if a layout no longer exists.

Using the GridLayout as an implicit layout is also not the correct
behavior. If this is the desired behavior, the GridLayout must be
selected in the preference page.
@github-actions
Copy link

Test Results

 2 720 files  ±0   2 720 suites  ±0   10h 4m 14s ⏱️ + 11m 48s
 7 002 tests ±0   6 944 ✅ +1   58 💤  - 1  0 ❌ ±0 
28 008 runs  ±0  27 776 ✅ +4  232 💤  - 4  0 ❌ ±0 

Results for commit 73e1522. ± Comparison against base commit 01eb9b8.

@ptziegler ptziegler merged commit d340674 into eclipse-windowbuilder:master Oct 11, 2025
9 checks passed
@ptziegler ptziegler deleted the swing-layout-npe branch October 11, 2025 21:09
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.

1 participant

0