fix for NPE generating ConceptMap spreadsheet
This commit is contained in:
parent
794754a8b0
commit
2df1283a54
|
@ -32,9 +32,12 @@ public class ConceptMapSpreadsheetGenerator extends CanonicalSpreadsheetGenerato
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addConceptMapMetadata(Sheet sheet, ConceptMap cm) {
|
private void addConceptMapMetadata(Sheet sheet, ConceptMap cm) {
|
||||||
addMetadataRow(sheet, "Source", cm.getSource().primitiveValue());
|
if (cm.hasSource()) {
|
||||||
addMetadataRow(sheet, "Target", cm.getTarget().primitiveValue());
|
addMetadataRow(sheet, "Source", cm.getSource().primitiveValue());
|
||||||
|
}
|
||||||
|
if (cm.hasTarget()) {
|
||||||
|
addMetadataRow(sheet, "Target", cm.getTarget().primitiveValue());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void renderGroup(ConceptMapGroupComponent grp, int i) {
|
private void renderGroup(ConceptMapGroupComponent grp, int i) {
|
||||||
|
|
Loading…
Reference in New Issue