Project: SWT
Bug 94815 Decorations.setDefaultButton() does not check for null
Reported: 2005-05-11 14:50:04 | Status: resolved fixed

Build: 3.1 M7 candidate On macosx, Decorations.setDefaultButton(Button) does not check if the button is null (a valid argument). The line: if (button.isDisposed()) throws an NPE when I pass in null. The win32 implementation does a null check.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Decorations.java