Project: Eclipse_Platform_UI
Bug 230360 [JFace] FontRegistry does not play nicely with non-UI threads
Reported: 2008-05-06 06:19:47 | Status: verified fixed

This method does: ... Display current = Display.getCurrent(); if (current == null) { Shell shell = new Shell(); } This code will _always_ fail because Shell will execute if (!display.isValidThread ()) Which is always TRUE because "current" was null.

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/FontRegistry.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/preferences/FontPreferenceTestCase.java