Bug 35192 Dialog.applyDialogFont should protect itself against null arguments
RC2 Now that many plugins use this method to apply the dialog font to widgets the method should protect itself against null arguments. Normally clients create their widget tree in a method createControl and there are changes that the returned control might be null. Adding a statement Dialog.applyDialogFont (result) with result == null will result in new NPEs.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java
import org.eclipse.swt.widgets.*;
/**
 * A dialog is a specialized window used for narrow-focused communication
 * with the user.
 * <p>
 * Dialogs are usually modal. Consequently, it is generally bad practice
 * to open a dialog without a parent. A model dialog without a parent 
 * is not prevented from disappearing behind the application's other windows,
 * making it very confusing for the user.
 * </p>
 */
public abstract class Dialog extends Window {
	/**
	 * Image registry key for error image (value <code>"dialog_error_image"</code>).
	 */
	public static final String DLG_IMG_ERROR = "dialog_error_image"; 
	/**
	 * Image registry key for info image (value <code>"dialog_info_image"</code>).
	 */
	public static final String DLG_IMG_INFO = "dialog_info_image"; 
	/**
	 * Image registry key for question image (value <code>"dialog_question_image"</code>).
	 */
	public static final String DLG_IMG_QUESTION = "dialog_question_image"; 
	/**
	 * Image registry key for warning image (value <code>"dialog_warning_image"</code>).
	 */
	public static final String DLG_IMG_WARNING = "dialog_warning_image"; 
	/**
	 * Image registry key for info message image (value <code>"dialog_messsage_info_image"</code>).