Program: 73861
Project: 73861
Buggy source:
/** 
 * Parse the XML output from the Trade Space Specification Tool and create a MoML representation of the architecture model. <p>To run this application: <pre> java -classpath $PTII ptolemy.actor.lib.logic.fuzzy.CombinedFile TSSTOutput.xml </pre> where <code>TSSTOutput.xml</code> is the output from the Trade  Space Specification Tool. Note: This argument is optional. If it is not provided the user  will be prompted for a filename. </p>
 * @param args with inputs to the main method.Inputs are currently not used
 */
public static void main(String args[]) throws IllegalActionException {
  BufferedReader reader=null;
  String fileName=null;
  try {
    if (args.length < 1) {
      System.out.println("String_Node_Str");
      try {
        reader=new BufferedReader(new InputStreamReader(System.in));
        fileName=reader.readLine();
      }
 catch (      IOException ex) {
        throw new IllegalActionException(null,ex,"String_Node_Str");
      }
 finally {
        if (reader != null) {
          try {
            reader.close();
          }
 catch (          IOException ex) {
            throw new IllegalActionException(null,ex,"String_Node_Str");
          }
        }
      }
    }
 else {
      fileName=args[0];
    }
    if (fileName != null) {
      ModelCreator cF=new ModelCreator(fileName);
    }
  }
 catch (  Exception ex) {
    ex.printStackTrace();
    System.exit(1);
  }
 finally {
    if (reader != null) {
      try {
        reader.close();
      }
 catch (      IOException ex) {
        throw new IllegalActionException(null,ex,"String_Node_Str" + fileName + "String_Node_Str");
      }
    }
  }
  System.exit(0);
}

Fixed version (ground truth):
/** 
 * Parse the XML output from the Trade Space Specification Tool and create a MoML representation of the architecture model. <p>To run this application: <pre> java -classpath $PTII ptolemy.actor.lib.logic.fuzzy.CombinedFile TSSTOutput.xml </pre> where <code>TSSTOutput.xml</code> is the output from the Trade  Space Specification Tool. Note: This argument is optional. If it is not provided the user  will be prompted for a filename. </p>
 * @param args with inputs to the main method.
 * @exception Exception If the input file cannot be read orparsed. Inputs are currently not used
 */
public static void main(String args[]) throws IllegalActionException {
  BufferedReader reader=null;
  String fileName=null;
  try {
    if (args.length < 1) {
      System.out.println("String_Node_Str");
      try {
        reader=new BufferedReader(new InputStreamReader(System.in));
        fileName=reader.readLine();
      }
 catch (      IOException ex) {
        throw new IllegalActionException(null,ex,"String_Node_Str");
      }
 finally {
        if (reader != null) {
          try {
            reader.close();
          }
 catch (          IOException ex) {
            throw new IllegalActionException(null,ex,"String_Node_Str");
          }
        }
      }
    }
 else {
      fileName=args[0];
    }
    if (fileName != null) {
      ModelCreator cF=new ModelCreator(fileName);
    }
  }
 catch (  Exception ex) {
    ex.printStackTrace();
    System.exit(1);
  }
 finally {
    if (reader != null) {
      try {
        reader.close();
      }
 catch (      IOException ex) {
        throw new IllegalActionException(null,ex,"String_Node_Str" + fileName + "String_Node_Str");
      }
    }
  }
  System.exit(0);
}