Project

General

Profile

bug #8942

Exception when try to get text of TextualTypeDesignation with language which is not available

Added by Katja Luther about 2 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
Highest
Assignee:
Category:
cdmlib
Target version:
Start date:
04/06/2020
Due date:
% Done:

100%

Severity:
blocker
Found in Version:

Description

java.lang.NullPointerException
    at eu.etaxonomy.cdm.model.name.TextualTypeDesignation.getText(TextualTypeDesignation.java:188)
    at eu.etaxonomy.cdm.model.name.TextualTypeDesignation.getPreferredText(TextualTypeDesignation.java:219)
    at eu.etaxonomy.cdm.io.cdmLight.CdmLightClassificationExport.handleName(CdmLightClassificationExport.java:1145)
    at eu.etaxonomy.cdm.io.cdmLight.CdmLightClassificationExport.handleSynonym(CdmLightClassificationExport.java:853)
    at eu.etaxonomy.cdm.io.cdmLight.CdmLightClassificationExport.handleTaxon(CdmLightClassificationExport.java:309)
    at eu.etaxonomy.cdm.io.cdmLight.CdmLightClassificationExport.handleTaxonNode(CdmLightClassificationExport.java:280)
    at eu.etaxonomy.cdm.io.cdmLight.CdmLightClassificationExport.doInvoke(CdmLightClassificationExport.java:154)
    at eu.etaxonomy.cdm.io.cdmLight.CdmLightClassificationExport.doInvoke(CdmLightClassificationExport.java:1)
    at eu.etaxonomy.cdm.io.common.CdmIoBase.invoke(CdmIoBase.java:107)
    at eu.etaxonomy.cdm.io.common.CdmExportBase.invoke(CdmExportBase.java:1)
    at eu.etaxonomy.cdm.io.common.CdmApplicationAwareDefaultExport.doExport(CdmApplicationAwareDefaultExport.java:230)
    at eu.etaxonomy.cdm.io.common.CdmApplicationAwareDefaultExport.execute(CdmApplicationAwareDefaultExport.java:114)
    at eu.etaxonomy.cdm.io.service.IOServiceImpl.export(IOServiceImpl.java:69)
    at eu.etaxonomy.cdm.io.service.IOServiceImpl$2.doRun(IOServiceImpl.java:101)
    at eu.etaxonomy.cdm.common.monitor.RemotingProgressMonitorThread.run(RemotingProgressMonitorThread.java:42)

Associated revisions

Revision a2bd2451 (diff)
Added by Katja Luther about 2 months ago

fix #8942: fix NPE for not existing language

History

#1 Updated by Katja Luther about 2 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 50

#2 Updated by Katja Luther about 2 months ago

  • Assignee changed from Katja Luther to Andreas Müller
  • Severity changed from normal to blocker

please review.

#3 Updated by Andreas Müller about 2 months ago

  • Status changed from Resolved to Closed
  • Assignee changed from Andreas Müller to Katja Luther
  • % Done changed from 50 to 100

Correct

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)