You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Current state:
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
Activity
[Win32] Properly handle setting null font to GC eclipse-platform#2350
[Win32] Properly handle setting null font to GC eclipse-platform#2350
[Win32] Properly handle setting null font to GC #2350