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

SSDM-3412: PathInfoProviderBasedHierarchicalContent: Instead of throwing an...

SSDM-3412: PathInfoProviderBasedHierarchicalContent: Instead of throwing an exception if children path infos are null an empty array is returned.

SVN: 36233
parent 906438f5
No related branches found
No related tags found
No related merge requests found
...@@ -243,16 +243,15 @@ public class PathInfoProviderBasedHierarchicalContent implements IHierarchicalCo ...@@ -243,16 +243,15 @@ public class PathInfoProviderBasedHierarchicalContent implements IHierarchicalCo
@Override @Override
protected List<IHierarchicalContentNode> doGetChildNodes() protected List<IHierarchicalContentNode> doGetChildNodes()
{ {
List<IHierarchicalContentNode> result = new ArrayList<IHierarchicalContentNode>();
List<DataSetPathInfo> pathInfos = List<DataSetPathInfo> pathInfos =
dataSetPathInfoProvider.listChildrenPathInfos(pathInfo); dataSetPathInfoProvider.listChildrenPathInfos(pathInfo);
if (pathInfos == null) if (pathInfos != null)
{
throw new IllegalArgumentException("No children path infos for " + pathInfo.getRelativePath());
}
List<IHierarchicalContentNode> result = new ArrayList<IHierarchicalContentNode>();
for (DataSetPathInfo child : pathInfos)
{ {
result.add(asNode(child)); for (DataSetPathInfo child : pathInfos)
{
result.add(asNode(child));
}
} }
return result; return result;
} }
......
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