* @return a {@link java.lang.String} object.
*/
public static String getFeatureNodeContainerText(FeatureNodeContainer element) {
+ String result = null;
if(element.getFeatureNode() != null && element.getFeatureNode().getFeature() != null){
- return element.getFeatureNode().getFeature().getLabel(CdmStore.getDefaultLanguage());
+ result = element.getFeatureNode().getFeature().getLabel(CdmStore.getDefaultLanguage());
+ } else{
+ return "No label set";
}
- return "No label set";
+ if (result == null){
+ result = element.getFeatureNode().getFeature().getLabel();
+ }
+ return result;
}
/**