AbstractContentTypeLoader

Kleiner Fehler in der if-Abfrage beseitig - Ein Fall war nicht breücksichtigt

Quasi



git-svn-id: https://svn.libreccm.org/ccm/trunk@608 8810af33-2d31-482b-a856-94f89814c4df
master
pb 2010-11-15 16:30:14 +00:00
parent 5ce4a59199
commit 3def7dbe24
1 changed files with 4 additions and 3 deletions

View File

@ -227,10 +227,11 @@ public abstract class AbstractContentTypeLoader extends PackageLoader {
// Save the current ct as possible parent if we haven't found any parent yet // Save the current ct as possible parent if we haven't found any parent yet
// or if the current ancestor list is longer than that one from the possible // or if the current ancestor list is longer than that one from the possible
// parent earlier found // parent earlier found
if (parent == null if (!type.getClassName().equals(ct.getClassName())
&& (parent == null
|| (parent.getAncestors() != null || (parent.getAncestors() != null
&& ct.getAncestors() != null && ct.getAncestors() != null
&& parent.getAncestors().length() < ct.getAncestors().length())) { && parent.getAncestors().length() < ct.getAncestors().length()))) {
parent = ct; parent = ct;
} }
} }