Small change to index on model building.

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@745377 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Britton Isbell 2009-02-18 04:44:59 +00:00
parent 09bd331c5a
commit 360b949e41
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ public final DomainModel transformToDomainModel( List<ModelProperty> properties,
{
int index = props.indexOf(mp) + 1;
if(index <= props.size() && mp.isParentOf(props.get(index)) && mp.getDepth() != props.get(index).getDepth()
if(index < props.size() && mp.isParentOf(props.get(index)) && mp.getDepth() != props.get(index).getDepth()
&& !props.get(index).getUri().contains("#property"))
{
p.add(new ModelProperty(mp.getUri(), null));