Skip to content

[Win32] Some icons are missing #2350

@HeikoKlare

Description

@HeikoKlare

Describe the bug
I found one place (maybe there are more) where an icon is missing. The tooltip when hovering over warnings does not show the warning symbol anymore.
It's a regression from:

The logs indicate that it's not related to the image itself but to a problem with the label using it:

java.lang.NullPointerException: Cannot invoke "org.eclipse.swt.graphics.Font.getDevice()" because "font" is null
	at org.eclipse.swt.graphics.GC$SetFontOperation.<init>(GC.java:4955)
	at org.eclipse.swt.graphics.GC.setFont(GC.java:4948)
	at org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotationHover$AnnotationInformationControl.lambda$0(AbstractAnnotationHover.java:337)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:268)

To Reproduce
Start an SDK product and create some Java file with a warning, such as an unnecessary warning suppression. I don't have an SWT-only reproducer yet.

Expected behavior
All icons should be shown as expected.

Screenshots
State from a week ago:
Image

Current state:
Image

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • All OS
    • Windows
    • Linux
    • macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc)
    Windows

  2. JRE/JDK version
    irrelevant

Version since
I20250722-1800

Workaround (or) Additional context
None known

Metadata

Metadata

Assignees

No one assigned

    Labels

    WindowsHappens on Windows OSregressionSomething that used to work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions