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

RemoteHierarchicalContent.getNode() throws an exception in accordance to interface contract.

SVN: 28229
parent f9c092a5
No related branches found
No related tags found
No related merge requests found
...@@ -100,15 +100,9 @@ public class RemoteHierarchicalContent implements IHierarchicalContent ...@@ -100,15 +100,9 @@ public class RemoteHierarchicalContent implements IHierarchicalContent
info = provider.tryGetPathInfoByRelativePath(relativePath); info = provider.tryGetPathInfoByRelativePath(relativePath);
} }
// 2013-01-29, BR: check this: according to the contract this method should throw
// IllegalArgumentException if the path does not exist.
if (info == null) if (info == null)
{ {
info = new DataSetPathInfo(); throw new IllegalArgumentException("Resource '" + relativePath + "' does not exist.");
info.setDirectory(true);
info.setRelativePath(relativePath);
info.setParent(null);
info.setFileName("");
} }
return createNode(info); return createNode(info);
......
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