Project: Eclipse_Platform_UI
Bug 271956 [Forms] SharedHeaderFormEditor should check for null header
Reported: 2009-04-12 01:42:44 | Status: resolved fixed

The SharedHeaderFormEditor should be coded to handle null header. A null header may happen in some cases: although it is hard for me to pinpoint the exact cases, I did encounter a NullPointerException resulting from the following method: public boolean isDirty() { return headerForm.isDirty() || super.isDirty(); } I believe a simple null check (defaulting to false) would solve this situation.

Files changed in fix:
bundles/org.eclipse.ui.forms/src/org/eclipse/ui/forms/editor/SharedHeaderFormEditor.java