Project

General

Profile

« Previous | Next » 

Revision 1c264f7a

Added by Katja Luther about 5 years ago

workaround for endless loop in default feature tree

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/PreferencesUtil.java
957 957
	public static FeatureTree getDefaultFeatureTreeForTextualDescription() {
958 958
		String uuidString = getStringValue(
959 959
				FEATURE_TREE_DEFAULT_TEXT);
960
		return CdmUtils.isEmpty(uuidString) ? null : CdmStore.getService(
961
				IFeatureTreeService.class).load(UUID.fromString(uuidString));
960
		if (uuidString == null) {
961
            return null;
962
        }
963
		FeatureTree tree = CdmStore.getService(
964
	                IFeatureTreeService.class).load(UUID.fromString(uuidString));
965
		if (tree.getId() == 0) {
966
            return null;
967
        }
968
		return tree;
962 969
	}
963 970

  
964 971
	/**

Also available in: Unified diff