Program: 73130
Project: 73130
Buggy source:
/** 
 * Import a Functional Mock-up Unit (FMU) file.
 */
private void _importFMU(){
  try {
    if (_frame instanceof BasicGraphFrame) {
      throw new InternalErrorException("String_Node_Str" + _frame + "String_Node_Str");
    }
 else {
      BasicGraphFrame basicGraphFrame=(BasicGraphFrame)_frame;
      Query query=new Query();
      query.setTextWidth(60);
      query.addFileChooser("String_Node_Str","String_Node_Str",_lastLocation,null,basicGraphFrame.getLastDirectory(),true,false,PtolemyQuery.preferredBackgroundColor(_frame),PtolemyQuery.preferredForegroundColor(_frame));
      ComponentDialog dialog=new ComponentDialog(_frame,"String_Node_Str",query);
      if (dialog.buttonPressed().equals("String_Node_Str")) {
        _lastLocation=query.getStringValue("String_Node_Str");
        GraphController controller=basicGraphFrame.getJGraph().getGraphPane().getGraphController();
        AbstractBasicGraphModel model=(AbstractBasicGraphModel)controller.getGraphModel();
        NamedObj context=model.getPtolemyModel();
        Rectangle2D bounds=basicGraphFrame.getVisibleCanvasRectangle();
        double x=bounds.getWidth() / 2.0;
        double y=bounds.getHeight() / 2.0;
        String fmuFileName=null;
        fmuFileName=_lastLocation;
        if (fmuFileName.equals(_fmuFileName)) {
          return;
        }
        _fmuFileName=fmuFileName;
        long modificationTime=new File(fmuFileName).lastModified();
        if (_fmuFileModificationTime == modificationTime) {
          return;
        }
        _fmuFileModificationTime=modificationTime;
        FMUImport.importFMU(this,fmuFileName,context,x,y);
      }
    }
  }
 catch (  Exception ex) {
    MessageHandler.error("String_Node_Str",ex);
  }
}

Fixed version (ground truth):
/** 
 * Import a Functional Mock-up Unit (FMU) file.
 */
private void _importFMU(){
  try {
    Class basicGraphFrameClass=null;
    try {
      basicGraphFrameClass=Class.forName("String_Node_Str");
    }
 catch (    Throwable throwable) {
      throw new InternalErrorException(null,throwable,"String_Node_Str");
    }
    if (basicGraphFrameClass == null) {
      throw new InternalErrorException(null,null,"String_Node_Str");
    }
 else     if (!basicGraphFrameClass.isInstance(_frame)) {
      throw new InternalErrorException("String_Node_Str" + _frame + "String_Node_Str");
    }
 else {
      BasicGraphFrame basicGraphFrame=(BasicGraphFrame)_frame;
      Query query=new Query();
      query.setTextWidth(60);
      query.addFileChooser("String_Node_Str","String_Node_Str",_lastLocation,null,basicGraphFrame.getLastDirectory(),true,false,PtolemyQuery.preferredBackgroundColor(_frame),PtolemyQuery.preferredForegroundColor(_frame));
      ComponentDialog dialog=new ComponentDialog(_frame,"String_Node_Str",query);
      if (dialog.buttonPressed().equals("String_Node_Str")) {
        _lastLocation=query.getStringValue("String_Node_Str");
        GraphController controller=basicGraphFrame.getJGraph().getGraphPane().getGraphController();
        AbstractBasicGraphModel model=(AbstractBasicGraphModel)controller.getGraphModel();
        NamedObj context=model.getPtolemyModel();
        Rectangle2D bounds=basicGraphFrame.getVisibleCanvasRectangle();
        double x=bounds.getWidth() / 2.0;
        double y=bounds.getHeight() / 2.0;
        String fmuFileName=null;
        fmuFileName=_lastLocation;
        if (fmuFileName.equals(_fmuFileName)) {
          return;
        }
        _fmuFileName=fmuFileName;
        long modificationTime=new File(fmuFileName).lastModified();
        if (_fmuFileModificationTime == modificationTime) {
          return;
        }
        _fmuFileModificationTime=modificationTime;
        FMUImport.importFMU(this,fmuFileName,context,x,y);
      }
    }
  }
 catch (  Exception ex) {
    MessageHandler.error("String_Node_Str",ex);
  }
}