return ""; //$NON-NLS-1$
} else {
KeyStatement question = getParent(node).getQuestion();
- String statementLabel = question != null ? CdmUtils.Nz(question.getLabelText(CdmStore.getDefaultLanguage())): null;
+ if (question == null){
+ return EMPTY;
+ }
+ String statementLabel = CdmUtils.Nz(question.getLabelText(CdmStore.getDefaultLanguage()));
if (StringUtils.isBlank(statementLabel)){
Map<Language, LanguageString> labels = question.getLabel();
if (labels != null && !labels.isEmpty()){
}
}
}
-
-
- return question != null ? statementLabel: EMPTY;
-
+ return statementLabel;
}
-
}
private String getItemStatement(PolytomousKeyNode node) {