Project

General

Profile

Revision 6d0ef1d2

ID6d0ef1d2f998a8b59843a546abf711c2f4cd00d8
Parent 38ac93ba
Child 5a9a799e

Added by Katja Luther over 2 years ago

fix double call of selection dialog

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/AbstractFilteredCdmResourceSelectionDialog.java
136 136
	 * @return a TYPE object.
137 137
	 */
138 138
	protected static <TYPE extends CdmBase> TYPE getSelectionFromDialog(AbstractFilteredCdmResourceSelectionDialog<TYPE> dialog) {
139
	    UuidAndTitleCache<TYPE> uuidAndTitleCache = getUuidAndTitleCacheSelectionFromDialog(dialog);
140
	    if (uuidAndTitleCache != null){
141
	        return dialog.getCdmObjectByUuid(getUuidAndTitleCacheSelectionFromDialog(dialog).getUuid());
142
	    }else{
143
	        return null;
144
	    }
139
	    UuidAndTitleCache result = getUuidAndTitleCacheSelectionFromDialog(dialog);
140
	    if (result != null){
141
	        return dialog.getCdmObjectByUuid(result.getUuid());
142
	    } else {
143
            return null;
144
        }
145 145
	}
146 146

  
147 147
	/**

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)