Project

General

Profile

Revision 3fa85b45

ID3fa85b454e525c42baf068b4f7cf9ecaad757fb1
Parent 7b6ed357
Child 88b1995d

Added by Andreas Kohlbecker about 5 years ago

fix #6127 handling case the taxon has no LSID, avoid NPE in NameCatalogeController

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/dto/NameCatalogueController.java
839 839
                    Set<IdentifiableSource> sources = taxon.getSources();
840 840
                    String[] didname = getDatasetIdName(sources);
841 841

  
842
                    String lsidString = null;
843
                    if( taxon.getLsid() != null) {
844
                        lsidString = taxon.getLsid().toString();
845
                    }
846

  
842 847
                    ti.setResponseTaxon(tb.getTitleCache(),
843 848
                            nvn.getTitleCache(),
844 849
                            nvn.getRank().getTitleCache(),
......
850 855
                            didname[1],
851 856
                            secTitle,
852 857
                            modified,
853
                            taxon.getLsid().toString());
858
                            lsidString
859
                     );
854 860

  
855 861

  
856 862
                    Set<SynonymRelationship> synRelationships = taxon.getSynonymRelations();

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)