Commit 121d555d authored by Noel Alonso's avatar Noel Alonso
Browse files

Corrige utilidad

parent a4d0b5a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ public class HierarchicalUtils {
	public static String getGrandparentId(String path) {

		String[] ancestorIds = getAncestorsIds(path);
		if(ancestorIds == null || ancestorIds.length < 3)
		if(ancestorIds == null || ancestorIds.length < 2)
			return null;
		return ancestorIds[ancestorIds.length - 2];
	}