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
* its children.
	 */
	public static void applyDialogFont(Control control) {
		Font dialogFont = JFaceResources.getDialogFont();
		Font defaultFont = JFaceResources.getDefaultFont();
		applyDialogFont(control, dialogFont, defaultFont);
	}
	/**
	 * Sets the dialog font on the control and any of its children if thier
	 * font is not otherwise set.
	 * 
	 * @param control the control to apply the font to. Font will also be applied to
	 * its children.
	 * @param dialogFont the dialog font to set
	 * @param defaultFont the default font to compare against
	 */
	private static void applyDialogFont(
		Control control,
		Font dialogFont,
		Font defaultFont) {
		if (control.getFont().equals(defaultFont))
			control.setFont(dialogFont);
		if (control instanceof Composite) {
			Control[] children = ((Composite) control).getChildren();
			for (int i = 0; i < children.length; i++)
				applyDialogFont(children[i], dialogFont, defaultFont);
		}
	}
}