Project

General

Profile

« Previous | Next » 

Revision ae468727

Added by Katja Luther over 3 years ago

fix NPE when no ABCD preference exist when opening preference dialog

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/databaseAdmin/preferencePage/AbcdImportPreference.java
286 286

  
287 287
        // TODO remember last selection
288 288
        nomenclaturalCodeSelectionCombo.addSelectionListener(this);
289

  
290
        allowOverride = preference.isAllowOverride();
289
        if (preference != null){
290
            allowOverride = preference.isAllowOverride();
291
        }
291 292
        Button checkAllowOverride = new Button(composite, SWT.CHECK);
292 293
        checkAllowOverride.setSelection(allowOverride);
293 294
        checkAllowOverride.setText(Messages.AbcdImportPreference_allow_override);

Also available in: Unified diff