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
composite.setLayoutData(data);
		composite.setFont(parent.getFont());
		
		createButtonsForButtonBar(composite);
		return composite;
	}
	/**
	 * Adds buttons to this dialog's button bar.
	 * <p>
	 * The <code>Dialog</code> implementation of this framework method adds 
	 * standard ok and cancel buttons using the <code>createButton</code>
	 * framework method. These standard buttons will be accessible from 
	 * <code>getCancelButton</code>, and <code>getOKButton</code>.
	 * Subclasses may override.
	 * </p>
	 *
	 * @param parent the button bar composite
	 */
	protected void createButtonsForButtonBar(Composite parent) {
		
		createButton(
			parent,
			IDialogConstants.OK_ID,
			IDialogConstants.OK_LABEL,
			true);
		createButton(
			parent,
			IDialogConstants.CANCEL_ID,
			IDialogConstants.CANCEL_LABEL,
			false);