Project: Eclipse_Platform_UI
Bug 182761 [Themes] Undefined color entry will cause an NPE if looked up
Reported: 2007-04-17 10:45:17 | Status: verified fixed

If you look up a ColorDescriptor from a theme and that color is not registered you will get a descriptor with a null color that will result in an NPE. We should either get back null, handle the null descriptor or have some API we can check.

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ColorRegistry.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/themes/JFaceThemeTest.java