-
Couldn't load subscription status.
- Fork 185
Description
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:
[Win32] Avoid disposed image usage in GC operations #2331- Track and dispose resources created by operations in GC #2328
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:

Environment:
- Select the platform(s) on which the behavior is seen:
-
- All OS
-
- Windows
-
- Linux
-
- macOS
-
Additional OS info (e.g. OS version, Linux Desktop, etc)
Windows -
JRE/JDK version
irrelevant
Version since
I20250722-1800
Workaround (or) Additional context
None known
