Project: Eclipse_Platform_UI
Bug 35192 Dialog.applyDialogFont should protect itself against null arguments
Reported: 2003-03-18 05:16:26 | Status: closed fixed

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.

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java