Project

General

Profile

« Previous | Next » 

Revision 2f567cbc

Added by Katja Luther over 6 years ago

ref bug #6894: NPE when trying drag&drop a Classification to the GrantedAuthority editor: revert use of classification instead of rootnode for CdmPermittionVoter

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/dnd/TaxonNavigatorDragAdapterAssistant.java
27 27
	public boolean setDragData(DragSourceEvent event,
28 28
			IStructuredSelection selection) {
29 29
		boolean setDataSuccess = false;
30
		List<ITaxonTreeNode> taxonNodes = new ArrayList<ITaxonTreeNode>();
30
		List<TaxonNode> taxonNodes = new ArrayList<TaxonNode>();
31 31
		for (Object object : selection.toList()){
32 32
			if(object instanceof TaxonNode){
33
				TaxonNode node = (TaxonNode)object;
34
				if (node.getTaxon() == null){
35
					object = ((TaxonNode) object).getClassification();
36
				}
37
				taxonNodes.add(((ITaxonTreeNode) object));
33
				taxonNodes.add(((TaxonNode) object));
38 34
				setDataSuccess = true;
39 35
			}
40 36
			

Also available in: Unified diff