Program: 121596
Project: 121596
Buggy source:
private void initFileContent(){
  if (getConnection().getJSONFilePath() == null || "String_Node_Str".equals(getConnection().getJSONFilePath())) {
    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 tem=fsProject.getLocationURI().getPath() + File.separator + "String_Node_Str";
  String fileName="String_Node_Str";
  String jsonPath=getConnection().getJSONFilePath();
  if (isContextMode()) {
    ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
    jsonPath=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,jsonPath));
  }
  if (jsonPath != null) {
    fileName=JSONUtil.TMP_JSON_FILE;
  }
 else   if (jsonPath.contains("String_Node_Str")) {
    fileName=new Path(jsonPath).lastSegment();
  }
  File temfile=new File(tem + 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);
  }
  tempJSONPath=temfile.getPath();
  if (isContextMode()) {
    ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
    tempJSONPath=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,tempJSONPath));
  }
}

Fixed version (ground truth):
private void initFileContent(){
  if (getConnection().getJSONFilePath() == null || "String_Node_Str".equals(getConnection().getJSONFilePath())) {
    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 tem=fsProject.getLocationURI().getPath() + File.separator + "String_Node_Str";
  String fileName="String_Node_Str";
  String jsonPath=getConnection().getJSONFilePath();
  if (isContextMode()) {
    ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
    jsonPath=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,jsonPath));
  }
  if (jsonPath != null && jsonPath.contains("String_Node_Str")) {
    fileName=new Path(jsonPath).lastSegment();
  }
 else   if (jsonPath != null) {
    fileName=JSONUtil.TMP_JSON_FILE;
  }
  File temfile=new File(tem + 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);
  }
  tempJSONPath=temfile.getPath();
  if (isContextMode()) {
    ContextType contextType=ConnectionContextHelper.getContextTypeForContextMode(connectionItem.getConnection());
    tempJSONPath=TalendQuoteUtils.removeQuotes(ConnectionContextHelper.getOriginalValue(contextType,tempJSONPath));
  }
}