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 parent;
		while ((parent = c.getParent()) != null) {
			if (parent == container)
				return true;
			c = parent;
		}
		return false;
	}
	/**
	 * The <code>Dialog</code> implementation of this <code>Window</code> method 
	 * creates and lays out the top level composite for the dialog, and
	 * determines the appropriate horizontal and vertical dialog units
	 * based on the font size. It then calls the <code>createDialogArea</code>
	 * and <code>createButtonBar</code> methods to create the dialog area
	 * and button bar, respectively. Overriding <code>createDialogArea</code> and
	 * <code>createButtonBar</code> are recommended rather than overriding
	 * this method.
	 */
	protected Control createContents(Composite parent) {
		
		Composite composite = new Composite(parent, 0);
		GridLayout layout = new GridLayout();
		layout.marginHeight = 0;
		layout.marginWidth = 0;
		layout.verticalSpacing = 0;
		composite.setLayout(layout);
		composite.setLayoutData(new GridData(GridData.FILL_BOTH));
		composite.setFont(parent.getFont());
		
		initializeDialogUnits(composite);