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

Add Null check before assigning coordinateMapper #1685

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

amartya4256
Copy link
Contributor

@amartya4256 amartya4256 commented Dec 19, 2024

This contribution adds a null check before assigning the coordinate mapper in the Device::init since it might already be assigned in coordinateMapper.

As of the current implementation, the MultiZoomCoordinateMapper is assigned to coordinateMapper (if rescalingAtRuntime is active) in setRescalingAtRuntime and then it is overwritten in Device:init and always reset to SingleZoomCoordinateSystemMapper which is not the intended behaviour.

Fixes #1686
contributes to #62 and #127

Copy link
Contributor

github-actions bot commented Dec 19, 2024

Test Results

   382 files  ±0     382 suites  ±0   7m 52s ⏱️ +7s
 4 251 tests ±0   4 241 ✅ ±0   9 💤 ±0  1 ❌ ±0 
12 305 runs  ±0  12 213 ✅ ±0  91 💤 ±0  1 ❌ ±0 

For more details on these failures, see this check.

Results for commit a0fc6b6. ± Comparison against base commit 62ad8d9.

♻️ This comment has been updated with latest results.

This commit adds a null check before assigning the coordinate mapper in
the Device::init since it might already be assigned in coordinateMapper.

Fixes eclipse-platform#1686
contributes to eclipse-platform#62 and eclipse-platform#127
@fedejeanne
Copy link
Contributor

Ignoring the usual suspects: #1676 and #1564

@fedejeanne fedejeanne merged commit b35fc01 into eclipse-platform:master Dec 19, 2024
7 of 14 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
2 participants