Revision e52a98ef
Added by Patrick Plitzner over 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/MultilanguageTextElement.java | ||
---|---|---|
64 | 64 |
public void widgetSelected(SelectionEvent e) { |
65 | 65 |
Map<Language, LanguageString> multilanguageText = getMultilanguageText(); |
66 | 66 |
|
67 |
if (multilanguageText.isEmpty()){ |
|
67 |
if (multilanguageText==null || multilanguageText.isEmpty()){
|
|
68 | 68 |
MessagingUtils.warningDialog("No text to translate", getClass(), "The text is empty and therefore can not be translated"); |
69 | 69 |
return; |
70 | 70 |
} |
Also available in: Unified diff
Fix potential NPE