fix NPE in DistributionEditor source status
authorAndreas Müller <a.mueller@bgbm.org>
Fri, 19 Oct 2018 11:17:12 +0000 (13:17 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Fri, 19 Oct 2018 11:17:31 +0000 (13:17 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/ChecklistEditorE4.java

index c35f07e031d511f90b3dea074de28d16298928db..df3a65c33166e237d1e616779187d23b5d3e6ace 100644 (file)
@@ -348,7 +348,7 @@ public class ChecklistEditorE4 implements  IConversationEnabled,
             @Override
             public void widgetSelected(SelectionEvent event) {
                 defaultSource = ReferenceSelectionDialog.select(AbstractUtility.getShell(), null);
-                statusLabelSourceReference.setText("Default Source Reference: " + defaultSource.getAbbrevTitleCache());
+                statusLabelSourceReference.setText(defaultSource == null ? "" : "Default Source Reference: " + defaultSource.getAbbrevTitleCache());
                 button2.setBackground(EditorUtil.getColor(Resources.COLOR_CONTROL_SELECTED));
             }