Program: 129284
Project: 129284
Buggy source:
private void initFileContent(){
  if (getConnection().getXmlFilePath() == null || "String_Node_Str".equals(getConnection().getXmlFilePath())) {
    return;
  }
  byte[] bytes=getConnection().getFileContent();
  Project project=ProjectManager.getInstance().getCurrentProject();
  IProject fsProject=null;
  try {
    fsProject=ResourceModelUtils.getProject(project);
  }
 catch (  PersistenceException e2) {
    ExceptionHandler.process(e2);
  }
  if (fsProject == null) {
    return;
  }
  String temPath=fsProject.getLocationURI().getPath() + File.separator + "String_Node_Str";
  String fileName="String_Node_Str";
  String xmlXsdPath=getConnection().getXmlFilePath();
  if (isContextMode()) {
    ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
    xmlXsdPath=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,xmlXsdPath));
  }
  if (xmlXsdPath != null && XmlUtil.isXMLFile(xmlXsdPath)) {
    fileName=StringUtil.TMP_XML_FILE;
  }
 else   if (xmlXsdPath != null && XmlUtil.isXSDFile(xmlXsdPath)) {
    fileName=StringUtil.TMP_XSD_FILE;
  }
  File temfile=new File(temPath + File.separator + fileName);
  if (!temfile.exists()) {
    try {
      temfile.createNewFile();
    }
 catch (    IOException e) {
      ExceptionHandler.process(e);
    }
  }
  FileOutputStream outStream;
  try {
    outStream=new FileOutputStream(temfile);
    outStream.write(bytes);
    outStream.close();
  }
 catch (  FileNotFoundException e1) {
    ExceptionHandler.process(e1);
  }
catch (  IOException e) {
    ExceptionHandler.process(e);
  }
  tempXmlXsdPath=temfile.getPath();
  if (isContextMode()) {
    ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
    tempXmlXsdPath=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,tempXmlXsdPath));
  }
}

Fixed version (ground truth):
private void initFileContent(){
  if (getConnection().getXmlFilePath() == null || "String_Node_Str".equals(getConnection().getXmlFilePath())) {
    return;
  }
  byte[] bytes=getConnection().getFileContent();
  Project project=ProjectManager.getInstance().getCurrentProject();
  IProject fsProject=null;
  try {
    fsProject=ResourceModelUtils.getProject(project);
  }
 catch (  PersistenceException e2) {
    ExceptionHandler.process(e2);
  }
  if (fsProject == null) {
    return;
  }
  String temPath=fsProject.getLocationURI().getPath() + File.separator + "String_Node_Str";
  String fileName="String_Node_Str";
  String xmlXsdPath=getConnection().getXmlFilePath();
  if (isContextMode()) {
    ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
    xmlXsdPath=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,xmlXsdPath));
  }
  if (xmlXsdPath != null && XmlUtil.isXMLFile(xmlXsdPath)) {
    fileName=StringUtil.TMP_XML_FILE;
  }
 else   if (xmlXsdPath != null && XmlUtil.isXSDFile(xmlXsdPath)) {
    fileName=new Path(xmlXsdPath).lastSegment();
  }
 else   if (xmlXsdPath.contains("String_Node_Str")) {
    fileName=new Path(xmlXsdPath).lastSegment();
  }
  File temfile=new File(temPath + File.separator + fileName);
  if (!temfile.exists()) {
    try {
      temfile.createNewFile();
    }
 catch (    IOException e) {
      ExceptionHandler.process(e);
    }
  }
  FileOutputStream outStream;
  try {
    outStream=new FileOutputStream(temfile);
    outStream.write(bytes);
    outStream.close();
  }
 catch (  FileNotFoundException e1) {
    ExceptionHandler.process(e1);
  }
catch (  IOException e) {
    ExceptionHandler.process(e);
  }
  tempXmlXsdPath=temfile.getPath();
  if (isContextMode()) {
    ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
    tempXmlXsdPath=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,tempXmlXsdPath));
  }
}