Skip to content

Commit

Permalink
fixes #1970
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilvam committed Feb 5, 2013
1 parent 017d2a3 commit 148bf09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ protected List<Category> getParents(Categorizable child) throws DotDataException

List<String> parentIds = catCache.getParents(child);
List<Category> parents = null;
if( parentIds == null ) {
if( parentIds == null || parentIds.isEmpty() ) {
HibernateUtil hu = new HibernateUtil(Category.class);
hu.setSQLQuery("select {category.*} from inode category_1_, category, tree " +
"where tree.child = ? and tree.parent = category.inode and category_1_.inode = category.inode " +
Expand Down

0 comments on commit 148bf09

Please sign in to comment.