Bug 182761 [Themes] Undefined color entry will cause an NPE if looked up
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.
bundles/org.eclipse.jface/src/org/eclipse/jface/resource/ColorRegistry.java
/*******************************************************************************
 * Copyright (c) 2003, 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jface.resource;
import java.util.ArrayList;
import java.util.Collections;