Buggy code:
final class BindingPersistence extends PreferencePersistence { private static final boolean DEBUG = Policy . DEBUG_KEY_BINDINGS ; private static final int INDEX_ACTIVE_SCHEME = 0 ; private static final int INDEX_BINDING_DEFINITIONS = 1 ; private static final int INDEX_SCHEME_DEFINITIONS = 2 ; private static final String LEGACY_DEFAULT_SCOPE = "org.eclipse.ui.globalScope" ; private static final Map r2_1KeysByName = new HashMap ( ) ; private static final KeySequence convert2_1Sequence ( int [ ] r21KeySequence ) { } private static final KeyStroke convert2_1Stroke ( final int r21Stroke ) { } static final String getDefaultSchemeId ( ) { } private static final int [ ] parse2_1Sequence ( final String string ) { } private static final int parse2_1Stroke ( final String string ) { } private static final void readActiveScheme ( final IConfigurationElement [ ] configurationElements , final int configurationElementCount , final IMemento preferences , final BindingManager bindingManager ) { final IPreferenceStore store = PlatformUI . getPreferenceStore ( ) ; final String defaultActiveSchemeId = store . getDefaultString ( KEY_CONFIGURATION_ID ) ; final String preferenceActiveSchemeId = store . getString ( KEY_CONFIGURATION_ID ) ; if ( ( preferenceActiveSchemeId != null ) && ( ! ( preferenceActiveSchemeId . equals ( defaultActiveSchemeId ) ) ) ) { try { bindingManager . setActiveScheme ( bindingManager . getScheme ( preferenceActiveSchemeId ) ) ; return ; } catch ( final NotDefinedException e ) { } } if ( preferences != null ) { final IMemento [ ] preferenceMementos = preferences . getChildren ( TAG_ACTIVE_KEY_CONFIGURATION ) ; int preferenceMementoCount = preferenceMementos . length ; for ( int i = preferenceMementoCount - 1 ; i >= 0 ; i -- ) { final IMemento memento = preferenceMementos [ i ] ; String id = memento . getString ( ATT_KEY_CONFIGURATION_ID ) ; if ( id != null ) { try { bindingManager . setActiveScheme ( bindingManager . getScheme ( id ) ) ; return ; } catch ( final NotDefinedException e ) { } } } } <START_BUG> if ( ( defaultActiveSchemeId != null ) && ( ! ( defaultActiveSchemeId . equals ( DEFAULT_DEFAULT_ACTIVE_SCHEME_ID ) ) ) ) { <END_BUG> try { bindingManager . setActiveScheme ( bindingManager . getScheme ( defaultActiveSchemeId ) ) ; return ; } catch ( final NotDefinedException e ) { } } for ( int i = configurationElementCount - 1 ; i >= 0 ; i -- ) { final IConfigurationElement configurationElement = configurationElements [ i ] ; String id = configurationElement . getAttribute ( ATT_KEY_CONFIGURATION_ID ) ; if ( id != null ) { try { bindingManager . setActiveScheme ( bindingManager . getScheme ( id ) ) ; return ; } catch ( final NotDefinedException e ) { } } id = configurationElement . getAttribute ( ATT_VALUE ) ; if ( id != null ) { try { bindingManager . setActiveScheme ( bindingManager . getScheme ( id ) ) ; return ; } catch ( final NotDefinedException e ) { } } } try { bindingManager . setActiveScheme ( bindingManager . getScheme ( DEFAULT_DEFAULT_ACTIVE_SCHEME_ID ) ) ; } catch ( final NotDefinedException e ) { throw new Error ( "The<seq2seq4repair_space>default<seq2seq4repair_space>default<seq2seq4repair_space>active<seq2seq4repair_space>scheme<seq2seq4repair_space>id<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>defined." ) ; } } private static final void readBindingsFromPreferences ( final IMemento preferences , final BindingManager bindingManager , final ICommandService commandService ) { } private static final void readBindingsFromRegistry ( final IConfigurationElement [ ] configurationElements , final int configurationElementCount , final BindingManager bindingManager , final ICommandService commandService ) { } private static final void readSchemesFromRegistry ( final IConfigurationElement [ ] configurationElements , final int configurationElementCount , final BindingManager bindingManager ) { } static final void write ( final Scheme activeScheme , final Binding [ ] bindings ) throws IOException { } private static final void writeActiveScheme ( final Scheme scheme ) { } private static final void writeActiveSchemeToPreferences ( final IMemento memento , final Scheme scheme ) { } private static final void writeBindingToPreferences ( final IMemento parent , final Binding binding ) { } private final BindingManager bindingManager ; private final ICommandService commandService ; BindingPersistence ( final BindingManager bindingManager , final ICommandService commandService ) { } protected final boolean isChangeImportant ( final IRegistryChangeEvent event ) { } protected final boolean isChangeImportant ( final PropertyChangeEvent event ) { } protected final void read ( ) { } }

Fix:
if ( ( ( defaultActiveSchemeId != null ) && ( ( defaultActiveSchemeId . length ( ) ) > 0 ) ) && ( ! ( defaultActiveSchemeId . equals ( DEFAULT_DEFAULT_ACTIVE_SCHEME_ID ) ) ) ) {