Skip to content

Fix potential NPE when refreshing MenuObjectEditPart#1487

Merged
ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:npe-check-in-menu-object-edit-part
Apr 30, 2026
Merged

Fix potential NPE when refreshing MenuObjectEditPart#1487
ptziegler merged 1 commit into
eclipse-windowbuilder:masterfrom
ptziegler:npe-check-in-menu-object-edit-part

Conversation

@ptziegler
Copy link
Copy Markdown
Contributor

By virtue of being executed asynchronously, the refresh operation within the MenuObjectEditPart might throw a NullPointerException when executed after the viewer has been disposed. Additionally, it may also throw an exception when the edit parts that are being refresh no longer exists, which might happen if they are former children of a different MenuObjectEditPart which was refreshed earlier.

By virtue of being executed asynchronously, the refresh operation within
the `MenuObjectEditPart` might throw a `NullPointerException` when
executed after the viewer has been disposed. Additionally, it may also
throw an exception when the edit parts that are being refresh no longer
exists, which might happen if they are former children of a different
`MenuObjectEditPart` which was refreshed earlier.
@ptziegler ptziegler added this to the 1.24.0 milestone Apr 30, 2026
@github-actions
Copy link
Copy Markdown

Test Results

 2 720 files  ±0   2 720 suites  ±0   11h 6m 3s ⏱️ + 1h 0m 45s
 7 018 tests ±0   6 972 ✅  - 1   45 💤 ±0  1 ❌ +1 
28 072 runs  ±0  27 879 ✅  - 1  192 💤 ±0  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 5ebb5c8. ± Comparison against base commit a31a05a.

@ptziegler ptziegler merged commit 8eef7ec into eclipse-windowbuilder:master Apr 30, 2026
6 of 8 checks passed
@ptziegler ptziegler deleted the npe-check-in-menu-object-edit-part branch April 30, 2026 19:13
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