Revision ef4b0cab
Added by Andreas Kohlbecker almost 6 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/name/TaxonNamePopupEditor.java | ||
---|---|---|
473 | 473 |
|
474 | 474 |
protected TeamOrPersonBase inferBasiomynAuthors() { |
475 | 475 |
List<TaxonName> basionyms = basionymsComboboxSelect.getValue(); |
476 |
if(!basionyms.isEmpty()){ |
|
476 |
if(!basionyms.isEmpty() && basionyms.get(0) != null){
|
|
477 | 477 |
TaxonName basionym = basionyms.get(0); |
478 | 478 |
if(basionym.getCombinationAuthorship() != null){ |
479 | 479 |
return basionym.getCombinationAuthorship(); |
... | ... | |
486 | 486 |
|
487 | 487 |
protected TeamOrPersonBase inferExBasiomynAuthors() { |
488 | 488 |
List<TaxonName> basionyms = basionymsComboboxSelect.getValue(); |
489 |
if(!basionyms.isEmpty()){ |
|
489 |
if(!basionyms.isEmpty() && basionyms.get(0) != null){
|
|
490 | 490 |
TaxonName basionym = basionyms.get(0); |
491 | 491 |
return basionym.getExCombinationAuthorship(); |
492 | 492 |
} |
Also available in: Unified diff
fixing NPE for selection of null Basionym