Skip to content
Snippets Groups Projects
Commit 87d35616 authored by felmer's avatar felmer
Browse files

SSDM-3412: Forward porting from stage r36047 (SSDM-3397: adding log for data...

SSDM-3412: Forward porting from stage r36047 (SSDM-3397: adding log for data set failed in sanity check of multi data set archiving.) and r36048 (SSDM-3397: throw IllegalArgumentException if children path infos are Null.)

SVN: 36081
parent acd771a2
No related branches found
No related tags found
No related merge requests found
...@@ -409,6 +409,10 @@ public class MultiDataSetArchiver extends AbstractArchiverProcessingPlugin ...@@ -409,6 +409,10 @@ public class MultiDataSetArchiver extends AbstractArchiverProcessingPlugin
{ {
throw new RuntimeException(status.tryGetErrorMessage()); throw new RuntimeException(status.tryGetErrorMessage());
} }
} catch (RuntimeException ex)
{
operationLog.error("Sanity check for data set " + dataSetCode + " failed: " + ex);
throw ex;
} finally } finally
{ {
if (content != null) if (content != null)
......
...@@ -245,6 +245,10 @@ public class PathInfoProviderBasedHierarchicalContent implements IHierarchicalCo ...@@ -245,6 +245,10 @@ public class PathInfoProviderBasedHierarchicalContent implements IHierarchicalCo
{ {
List<DataSetPathInfo> pathInfos = List<DataSetPathInfo> pathInfos =
dataSetPathInfoProvider.listChildrenPathInfos(pathInfo); dataSetPathInfoProvider.listChildrenPathInfos(pathInfo);
if (pathInfos == null)
{
throw new IllegalArgumentException("No children path infos for " + pathInfo.getRelativePath());
}
List<IHierarchicalContentNode> result = new ArrayList<IHierarchicalContentNode>(); List<IHierarchicalContentNode> result = new ArrayList<IHierarchicalContentNode>();
for (DataSetPathInfo child : pathInfos) for (DataSetPathInfo child : pathInfos)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment