Project

General

Profile

Revision 0d1a532b

ID0d1a532b1cfaaa23b0569b78955b6cdd33f5d973
Parent 78e01af4
Child d445b8eb

Added by Patrick Plitzner over 2 years ago

Fix possible NPE

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/DescriptiveDataSetNavigator.java
96 96
                ISelection selection = event.getSelection();
97 97
                if(selection instanceof IStructuredSelection){
98 98
                	DescriptiveDataSet descriptiveDataSetUuid = (DescriptiveDataSet) ((IStructuredSelection) selection).getFirstElement();
99
                    EditorUtil.openDescriptiveDataSetEditor(descriptiveDataSetUuid.getUuid(), modelService, partService, application);
99
                	if(descriptiveDataSetUuid!=null){
100
                	    EditorUtil.openDescriptiveDataSetEditor(descriptiveDataSetUuid.getUuid(), modelService, partService, application);
101
                	}
100 102
                }
101 103
            }
102 104
        });

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)