- FeatureNode[] featureNodes = (FeatureNode[]) selection.toList().toArray(new FeatureNode[selection.size()]);
- if (FeatureNodeTransfer.getInstance().isSupportedType(event.dataType)) {
- event.data = featureNodes;
+ if(selection!=null && !selection.isEmpty()){
+ FeatureNode[] featureNodes = (FeatureNode[]) selection.toList().toArray(new FeatureNode[selection.size()]);
+ if (FeatureNodeTransfer.getInstance().isSupportedType(event.dataType)) {
+ event.data = featureNodes;
+ }