Program: 73232
Project: 73232
Buggy source:
/** 
 * Override the base class to generate a web page or an image file for the specified object, if appropriate, and to provide the href, target, and class attributes to the area attribute associated with the object.
 * @param exporter The exporter.
 * @param object The Ptolemy II object.
 * @throws IllegalActionException If evaluating parameters fails.
 */
protected void _provideOutsideContent(WebExporter exporter,NamedObj object) throws IllegalActionException {
  Map<NamedObj,PtolemyEffigy> openEffigies=new HashMap<NamedObj,PtolemyEffigy>();
  Tableau myTableau=exporter.getFrame().getTableau();
  Effigy myEffigy=(Effigy)myTableau.getContainer();
  List<PtolemyEffigy> effigies=myEffigy.entityList(PtolemyEffigy.class);
  for (  PtolemyEffigy effigy : effigies) {
    openEffigies.put(effigy.getModel(),effigy);
  }
  PtolemyEffigy effigy=openEffigies.get(object);
  if (effigy == null) {
    Effigy candidate=Configuration.findEffigy(object);
    if (candidate instanceof PtolemyEffigy) {
      effigy=(PtolemyEffigy)candidate;
    }
  }
  try {
    if (effigy != null) {
      _linkTo(exporter,effigy,object,exporter.getExportDirectory());
    }
 else {
      if (object instanceof State) {
        try {
          TypedActor[] refinements=((State)object).getRefinement();
          if (refinements != null && refinements.length > 0) {
            effigy=openEffigies.get((NamedObj)refinements[0]);
            if (effigy != null) {
              _linkTo(exporter,effigy,(NamedObj)refinements[0],exporter.getExportDirectory());
            }
          }
        }
 catch (        IllegalActionException e) {
        }
      }
 else       if (object instanceof Instantiable) {
        Instantiable parent=((Instantiable)object).getParent();
        if (parent instanceof NamedObj) {
          Effigy classEffigy=Configuration.findEffigy((NamedObj)parent);
          if (classEffigy instanceof PtolemyEffigy) {
            _linkTo(exporter,(PtolemyEffigy)classEffigy,(NamedObj)parent,exporter.getExportDirectory());
          }
        }
      }
    }
  }
 catch (  Throwable throwable) {
    throw new IllegalActionException(this,throwable,"String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Override the base class to generate a web page or an image file for the specified object, if appropriate, and to provide the href, target, and class attributes to the area attribute associated with the object.
 * @param exporter The exporter.
 * @param object The Ptolemy II object.
 * @throws IllegalActionException If evaluating parameters fails.
 */
protected void _provideOutsideContent(WebExporter exporter,NamedObj object) throws IllegalActionException {
  Map<NamedObj,PtolemyEffigy> openEffigies=new HashMap<NamedObj,PtolemyEffigy>();
  Tableau myTableau=exporter.getFrame().getTableau();
  Effigy myEffigy=(Effigy)myTableau.getContainer();
  List<PtolemyEffigy> effigies=myEffigy.entityList(PtolemyEffigy.class);
  for (  PtolemyEffigy effigy : effigies) {
    openEffigies.put(effigy.getModel(),effigy);
  }
  PtolemyEffigy effigy=openEffigies.get(object);
  if (effigy == null) {
    Effigy candidate=Configuration.findEffigy(object);
    if (candidate instanceof PtolemyEffigy) {
      effigy=(PtolemyEffigy)candidate;
    }
  }
  try {
    if (effigy != null) {
      _linkTo(exporter,effigy,object,object,exporter.getExportDirectory());
    }
 else {
      if (object instanceof State) {
        try {
          TypedActor[] refinements=((State)object).getRefinement();
          if (refinements != null && refinements.length > 0) {
            effigy=openEffigies.get((NamedObj)refinements[0]);
            if (effigy != null) {
              _linkTo(exporter,effigy,(NamedObj)refinements[0],(NamedObj)refinements[0],exporter.getExportDirectory());
            }
          }
        }
 catch (        IllegalActionException e) {
        }
      }
 else       if (object instanceof Instantiable) {
        Instantiable parent=((Instantiable)object).getParent();
        if (parent instanceof NamedObj) {
          if (_exportedClassDefinitions.contains(parent)) {
            exporter.defineAreaAttribute(object,"String_Node_Str",parent.getName() + "String_Node_Str",true);
          }
 else {
            _exportedClassDefinitions.add((NamedObj)parent);
            Effigy classEffigy=Configuration.findEffigy((NamedObj)parent);
            if (classEffigy instanceof PtolemyEffigy) {
              _linkTo(exporter,(PtolemyEffigy)classEffigy,object,(NamedObj)parent,exporter.getExportDirectory());
            }
          }
        }
      }
    }
  }
 catch (  Throwable throwable) {
    throw new IllegalActionException(this,throwable,"String_Node_Str");
  }
}