additional indexes support fixed (the case when the index is bound to one class only) BLD200304300100
authormmatula@netbeans.org
Tue, 29 Apr 2003 22:52:09 +0000
changeset 1283877a88f004b5
parent 1282 6e2a5edf8591
child 1284 99ad1ab8ccba
additional indexes support fixed (the case when the index is bound to one class only)
mdr/src/org/netbeans/mdr/storagemodel/StorableObject.java
     1.1 --- a/mdr/src/org/netbeans/mdr/storagemodel/StorableObject.java	Tue Apr 29 18:33:13 2003 +0000
     1.2 +++ b/mdr/src/org/netbeans/mdr/storagemodel/StorableObject.java	Tue Apr 29 22:52:09 2003 +0000
     1.3 @@ -428,10 +428,10 @@
     1.4          StorableClass proxy = getClassProxy();
     1.5          StorableClass.AttributeDescriptor attrDesc = proxy.getAttrDesc(attrIdx);
     1.6          org.netbeans.mdr.persistence.MOFID attribId = attrDesc.getMofId();
     1.7 -        
     1.8 -        if (attrDesc.isIndexed()) {
     1.9 +        Collection indexes;
    1.10 +        if (attrDesc.isIndexed() && (indexes = proxy.getIndexes(attribId)) != null) {
    1.11              
    1.12 -            Iterator iter = proxy.getIndexes(attribId).iterator();
    1.13 +            Iterator iter = indexes.iterator();
    1.14              org.netbeans.mdr.persistence.MOFID outermostPackageId = getOutermostPackageId();
    1.15              org.netbeans.mdr.persistence.MOFID mofId = getMofId();
    1.16