Skip to content

Conversation

@Christopher-Hermann
Copy link
Contributor

The search view with "reuse editor" enabled sets new source code in the existing editor and fires a extPresentation change event. In this call, it can happen that the sticky line number exceeds the amount of line in the new source code. In general this is not a problem since the sticky lines will be recalculated afterwards, but to avoid IllegalArgumentException it is checked for this case.

Fixes #2678

@github-actions
Copy link
Contributor

github-actions bot commented Jan 17, 2025

Test Results

 1 212 files   -   606   1 212 suites   - 606   49m 40s ⏱️ - 46m 13s
 7 739 tests ±    0   7 511 ✅ +    1  228 💤 ±  0  0 ❌  - 1 
16 252 runs   - 8 126  15 784 ✅  - 7 844  468 💤  - 281  0 ❌  - 1 

Results for commit 551f15d. ± Comparison against base commit dbf808e.

♻️ This comment has been updated with latest results.

The search view with "reuse editor" enabled sets new source code in the existing editor and fires a extPresentation change event. In this call, it can happen that the sticky line number exceeds the amount of line in the new source code. In general this is not a problem since the sticky lines will be recalculated afterwards, but to avoid IllegalArgumentException it is checked for this case.

Fixes eclipse-platform#2678
@iloveeclipse iloveeclipse merged commit 815c9c0 into eclipse-platform:master Jan 17, 2025
14 of 16 checks passed
@Christopher-Hermann Christopher-Hermann deleted the fixIAE branch January 24, 2025 14:03
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.

StickyScrolling: Exceptions while opening Java editors from Search view

2 participants