Changeset 7279

Show
Ignore:
Timestamp:
08/26/08 11:51:19 (4 months ago)
Author:
shendric
Message:

Fixed: NPE for architectures where there are not previous hints (and hints cannot be added because of change sets)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • archstudio4/trunk/edu.uci.isr.archstudio4/src/edu/uci/isr/archstudio4/comp/archipelago/generic/logics/hints/XAdlHintRepository.java

    r7257 r7279  
    304304                                Tuple key = new Tuple(hintedElementRef, name); 
    305305                                ObjRef propertyRef = hintedElementRefNameToPropertyRefs.get(key); 
    306                                 if(propertyRef != null && xarch.hasAncestor(propertyRef, propertyRefTracker.getRootObjRef())){ 
     306                                if(propertyRef != null && propertyRefTracker.getRootObjRef() != null && xarch.hasAncestor(propertyRef, propertyRefTracker.getRootObjRef())){ 
    307307                                        return propertyRef; 
    308308                                }