From 8d0cfe37bc651c5d193e798ae4fccad634d7a7f1 Mon Sep 17 00:00:00 2001
From: buczekp <buczekp>
Date: Thu, 15 Oct 2009 08:08:43 +0000
Subject: [PATCH] fixed cifex data set info extractor to allow connection with
 an experiment but no parents

SVN: 12987
---
 .../cisd/etlserver/cifex/CifexDataSetInfoExtractor.java        | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/datastore_server/source/java/ch/systemsx/cisd/etlserver/cifex/CifexDataSetInfoExtractor.java b/datastore_server/source/java/ch/systemsx/cisd/etlserver/cifex/CifexDataSetInfoExtractor.java
index 6bc2d3bbaff..266ae206a97 100644
--- a/datastore_server/source/java/ch/systemsx/cisd/etlserver/cifex/CifexDataSetInfoExtractor.java
+++ b/datastore_server/source/java/ch/systemsx/cisd/etlserver/cifex/CifexDataSetInfoExtractor.java
@@ -81,7 +81,8 @@ public class CifexDataSetInfoExtractor implements IDataSetInfoExtractor
                     new ExperimentIdentifierFactory(info.getExperiment()).createIdentifier();
             dataSetInformation.setExperimentIdentifier(experimentIdentifier);
             dataSetInformation.setGroupCode(experimentIdentifier.getGroupCode());
-            dataSetInformation.setParentDataSetCodes(Arrays.asList(info.getParents()));
+            String[] parents = info.getParents() != null ? info.getParents() : new String[0];
+            dataSetInformation.setParentDataSetCodes(Arrays.asList(parents));
         }
 
         dataSetInformation.setUploadingUserEmail(CifexExtratorHelper
-- 
GitLab