Project

General

Profile

Revision d6c301d9

IDd6c301d933456c5ca71508303fbf769c9f208708
Parent 32dc6dc8
Child e36722ea

Added by Andreas Müller almost 2 years ago

ref #2335 fix preferredRepresentation for DescriptiveDataSet with no representation

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/description/DescriptiveDataSet.java
222 222
	 * @return
223 223
	 */
224 224
	public Representation getPreferredRepresentation(Language language) {
225
		Representation repr = getRepresentation(language);
225
		if (representations.size() == 0){
226
		    return null;
227
		}
228
	    Representation repr = getRepresentation(language);
226 229
		if(repr == null){
227 230
			repr = getRepresentation(Language.DEFAULT());
228 231
		}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)