ref #7998 Fix possible NPE
authorPatrick Plitzner <p.plitzner@bgbm.org>
Fri, 1 Feb 2019 11:02:44 +0000 (12:02 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Fri, 1 Feb 2019 11:02:44 +0000 (12:02 +0100)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/character/CharacterEditor.java

index f018df8860f012879cd36ef56bd851e7b043577a..758a07b80f101329c34ea153fe99894af880325f 100644 (file)
@@ -147,7 +147,9 @@ public class CharacterEditor implements IFeatureTreeEditor,IConversationEnabled,
             @Override
             public void widgetSelected(SelectionEvent e) {
                 vocabulary = TermVocabularySelectionDialog.select("Select vocabulary for characters", btnChooseVoc.getShell(), null);
-                txtVocabulary.setText(vocabulary.getLabel());
+                if(vocabulary!=null){
+                    txtVocabulary.setText(vocabulary.getLabel());
+                }
             }
         });