Project

General

Profile

Revision 1c264f7a

ID1c264f7ac5c4e71f225a10c2e62cfb7b87abc2aa
Parent 96615335
Child bb082354

Added by Katja Luther over 1 year 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

Add picture from clipboard (Maximum size: 40 MB)