Skip to content

Commit

Permalink
SYNC-1542 Fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnlok authored and brianchandotcom committed Apr 22, 2016
1 parent af31b6d commit cca88c6
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -1106,6 +1106,8 @@ protected void checkFolder(Folder folder)
if (dlFolder.isInTrash()) {
throw new NoSuchFolderException();
}

return;
}

throw new PortalException("Folder must be an instance of DLFolder");
Expand All @@ -1114,6 +1116,10 @@ protected void checkFolder(Folder folder)
protected void checkFolder(long folderId)
throws PortalException, SystemException {

if (folderId == DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) {
return;
}

Folder folder = dlAppService.getFolder(folderId);

checkFolder(folder);
Expand Down

0 comments on commit cca88c6

Please sign in to comment.