Skip to content

Conversation

@iloveeclipse
Copy link
Member

VariablesView.becomesHidden() is setting
ViewerInputService.NULL_INPUT which sets the IViewerInputUpdate "input element" to null and so the viewer input for Breakpoints view to null.

This is expected case, however the code in ViewerUpdateMonitor and in ChildrenUpdate was not prepared to that valid use case and runs into NPE or reports errors in case where no error happens.

To fix (and add more error context for possible remaining input issues), let the VariablesView provide last used IViewerInputUpdate object so it can be used by ViewerUpdateMonitor, and let the ChildrenUpdate code be aware about viewer input element being null (which is documented as possible value at ViewerUpdateMonitor.getViewerInput()).

Additionally implemented toString() in all related objects that can be set in ViewerInputUpdate, so the data can be provided in the error reported by ViewerUpdateMonitor for all remaining use cases with "null" input.

Fixes #2150

`VariablesView.becomesHidden()` is setting
`ViewerInputService.NULL_INPUT` which sets the `IViewerInputUpdate`
"input element" to null and so the viewer input for `Breakpoints` view
to null.

This is expected case, however the code in `ViewerUpdateMonitor` and in
`ChildrenUpdate` was not prepared to that valid use case and runs into
NPE or reports errors in case where no error happens.

To fix (and add more error context for possible remaining input issues),
let the `VariablesView` provide last used `IViewerInputUpdate` object so
it can be used by `ViewerUpdateMonitor`, and let the `ChildrenUpdate`
code be aware about viewer input element being null (which is documented
as possible value at `ViewerUpdateMonitor.getViewerInput()`).

Additionally implemented `toString()` in all related objects that can be
set in `ViewerInputUpdate`, so the data can be provided in the error
reported by `ViewerUpdateMonitor` for all remaining use cases with
"null" input.

Fixes eclipse-platform#2150
@github-actions
Copy link
Contributor

Test Results

 1 947 files  ±0   1 947 suites  ±0   1h 47m 25s ⏱️ + 9m 11s
 4 720 tests ±0   4 696 ✅ ±0   24 💤 ±0  0 ❌ ±0 
14 160 runs  ±0  13 993 ✅ ±0  167 💤 ±0  0 ❌ ±0 

Results for commit 8b280af. ± Comparison against base commit 54a6a86.

@iloveeclipse iloveeclipse merged commit 8aa4a91 into eclipse-platform:master Sep 10, 2025
18 checks passed
@iloveeclipse iloveeclipse deleted the issue_2150 branch September 10, 2025 15:05
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.

Removing breakpoint produces few errors in the log if Breakpoints view shows a tree

1 participant