Skip to content

[Win32] Add missing null check in Table tooltip positioning #3487 - #3491

Open
HeikoKlare wants to merge 1 commit into
eclipse-platform:masterfrom
HeikoKlare:issue-3487
Open

[Win32] Add missing null check in Table tooltip positioning #3487#3491
HeikoKlare wants to merge 1 commit into
eclipse-platform:masterfrom
HeikoKlare:issue-3487

Conversation

@HeikoKlare

@HeikoKlare HeikoKlare commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Table and tree implementations contain a tooltip repositioning functionality to make a tooltip fit into a single monitor. The reason is that tooltips spanning multiple monitors of different zoom can freeze the UI thread on Windows.

While in the Tree implementation the repositioning was properly guarded with a null check for the adjusted position, this check is missing in the Table implementation can lead to a NullPointerException in case the calculated result is actually null. This change fixes that by adding an according null check, which effectively skips the tooltip repositioning in case the correct monitor to fit into could not be found.

Fixes #3487

Originally introduced with: #2241

…latform#3487

Table and tree implementations contain a tooltip repositioning
functionality to make a tooltip fit into a single monitor. The reason is
that tooltips spanning multiple monitors of different zoom can freeze
the UI thread on Windows.

While in the Tree implementation the repositioning was properly guarded
with a null check for the adjusted position, this check is missing in
the Table implementation can lead to a NullPointerException in case the
calculated result is actually null. This change fixes that by adding an
according null check, which effectively skips the tooltip repositioning
in case the correct monitor to fit into could not be found.

Fixes eclipse-platform#3487

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Prevents a Win32 Table tooltip-positioning NPE when no containing monitor is found.

Changes:

  • Guards nullable adjusted tooltip bounds.
  • Skips repositioning when bounds cannot be calculated.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Test Results (win32)

   35 files  ±0     35 suites  ±0   5m 21s ⏱️ -16s
4 868 tests ±0  4 792 ✅ ±0  76 💤 ±0  0 ❌ ±0 
1 395 runs  ±0  1 371 ✅ ±0  24 💤 ±0  0 ❌ ±0 

Results for commit ffc037e. ± Comparison against base commit 4755f49.

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.

[Win32] Possible NPE handling WM_NOTIFY

2 participants