Project

General

Profile

« Previous | Next » 

Revision 6df87ada

Added by Andreas Müller over 5 years ago

fix NPE in DistributionEditor source status

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/ChecklistEditorE4.java
348 348
            @Override
349 349
            public void widgetSelected(SelectionEvent event) {
350 350
                defaultSource = ReferenceSelectionDialog.select(AbstractUtility.getShell(), null);
351
                statusLabelSourceReference.setText("Default Source Reference: " + defaultSource.getAbbrevTitleCache());
351
                statusLabelSourceReference.setText(defaultSource == null ? "" : "Default Source Reference: " + defaultSource.getAbbrevTitleCache());
352 352
                button2.setBackground(EditorUtil.getColor(Resources.COLOR_CONTROL_SELECTED));
353 353
            }
354 354

  

Also available in: Unified diff