Skip to content

Conversation

@ptziegler
Copy link
Contributor

This is a follow-up to e8aadbb which introduced a regression when working with null devices.

If null is passed as argument, the value of Device.getDevice() is used as a fallback when initializing this field. This field must be used for all other operations in the constructor, rather than the constructor argument.

Closes #2414

@github-actions
Copy link
Contributor

github-actions bot commented Aug 13, 2025

Test Results

   546 files  ±0     546 suites  ±0   32m 34s ⏱️ + 4m 12s
 4 425 tests ±0   4 408 ✅ ±0   17 💤 ±0  0 ❌ ±0 
16 746 runs  ±0  16 619 ✅ ±0  127 💤 ±0  0 ❌ ±0 

Results for commit b16c084. ± Comparison against base commit 39a37ad.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@HeikoKlare HeikoKlare left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

…e-platform#2414

This is a follow-up to e8aadbb which
introduced a regression when working with null devices.

If null is passed as argument, the value of Device.getDevice() is used
as a fallback when initializing this field. This field must be used for
all other operations in the constructor, rather than the constructor
argument.

Closes eclipse-platform#2414
@HeikoKlare HeikoKlare merged commit 8838c9d into eclipse-platform:master Aug 13, 2025
21 of 22 checks passed
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.

NullPointerException in Cursor constructor if device is null.

2 participants