Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE on MAC on TreeViewerFocusCellManager - fixes #174 #178

Merged
merged 1 commit into from
Jun 29, 2022
Merged

NPE on MAC on TreeViewerFocusCellManager - fixes #174 #178

merged 1 commit into from
Jun 29, 2022

Conversation

DenisUngemach
Copy link
Contributor

In TreeViewerFocusCellManager.getInitialFocusCell() the
tree.getTopItem() can return a null element, since the tree can be in
process (expanded, collapsed, scrolled or new items are added or
removed). So a null check must be added.

Change-Id: Icdc9b44b3ace1cc385e2a6e8cf43f04622c31020
Signed-off-by: Denis Ungemach denis.ungemach@sap.com

@sratz sratz changed the title NPE on MAC on TreeViewerFocusCellManager (fixes eclipse-platform#174) NPE on MAC on TreeViewerFocusCellManager - fixes #174 Jun 29, 2022
In TreeViewerFocusCellManager.getInitialFocusCell() the
tree.getTopItem() can return a null element, since the tree can be in
process (expanded, collapsed, scrolled or new items are added or
removed). So a null check must be added.

Change-Id: Icdc9b44b3ace1cc385e2a6e8cf43f04622c31020
Signed-off-by: Denis Ungemach <denis.ungemach@sap.com>
@sratz sratz merged commit 4a795a1 into eclipse-platform:master Jun 29, 2022
@sratz sratz self-assigned this Jun 29, 2022
@sratz
Copy link
Member

sratz commented Jun 29, 2022

Thanks, Denis!

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.

None yet

2 participants