Program: 47185
Project: 47185
Buggy source:
@Override public void parse(DLNAMediaInfo media,InputFile file,int type,RendererConfiguration renderer){
  PmsConfiguration configuration=PMS.getConfiguration(renderer);
  try {
    OutputParams params=new OutputParams(configuration);
    params.waitbeforestart=1;
    params.minBufferSize=1;
    params.maxBufferSize=5;
    params.hidebuffer=true;
    String cmdArray[]=new String[4];
    cmdArray[0]=configuration.getDCRawPath();
    cmdArray[1]="String_Node_Str";
    cmdArray[2]="String_Node_Str";
    if (file.getFile() != null) {
      cmdArray[3]=file.getFile().getAbsolutePath();
    }
    params.log=true;
    ProcessWrapperImpl pw=new ProcessWrapperImpl(cmdArray,params,true,false);
    pw.runInSameThread();
    List<String> list=pw.getOtherResults();
    for (    String s : list) {
      if (s.startsWith("String_Node_Str")) {
        String sz=s.substring(13);
        media.setWidth(Integer.parseInt(sz.substring(0,sz.indexOf('x')).trim()));
        media.setHeight(Integer.parseInt(sz.substring(sz.indexOf('x') + 1).trim()));
        break;
      }
    }
    if (media.getWidth() > 0) {
      byte[] image=RAWThumbnailer.getThumbnail(params,file.getFile().getAbsolutePath());
      media.setSize(image.length);
      media.setCodecV("String_Node_Str");
      media.setContainer("String_Node_Str");
      if (configuration.getImageThumbnailsEnabled()) {
        ByteArrayOutputStream out=new ByteArrayOutputStream();
        Thumbnails.of(new ByteArrayInputStream(image)).size(320,180).outputFormat("String_Node_Str").outputQuality(1.0f).toOutputStream(out);
        media.setThumb(out.toByteArray());
      }
    }
    media.finalize(type,file);
    media.setMediaparsed(true);
  }
 catch (  Exception e) {
    LOGGER.debug("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@Override public void parse(DLNAMediaInfo media,InputFile file,int type,RendererConfiguration renderer){
  PmsConfiguration configuration=PMS.getConfiguration(renderer);
  try {
    OutputParams params=new OutputParams(configuration);
    params.waitbeforestart=1;
    params.hidebuffer=true;
    String cmdArray[]=new String[4];
    cmdArray[0]=configuration.getDCRawPath();
    cmdArray[1]="String_Node_Str";
    cmdArray[2]="String_Node_Str";
    if (file.getFile() != null) {
      cmdArray[3]=file.getFile().getAbsolutePath();
    }
    params.log=true;
    ProcessWrapperImpl pw=new ProcessWrapperImpl(cmdArray,params,true,false);
    pw.runInSameThread();
    List<String> list=pw.getOtherResults();
    for (    String s : list) {
      if (s.startsWith("String_Node_Str")) {
        String sz=s.substring(13);
        media.setWidth(Integer.parseInt(sz.substring(0,sz.indexOf('x')).trim()));
        media.setHeight(Integer.parseInt(sz.substring(sz.indexOf('x') + 1).trim()));
        break;
      }
    }
    if (media.getWidth() > 0) {
      byte[] image=RAWThumbnailer.getThumbnail(params,file.getFile().getAbsolutePath());
      media.setSize(image.length);
      media.setCodecV("String_Node_Str");
      media.setContainer("String_Node_Str");
      if (configuration.getImageThumbnailsEnabled()) {
        ByteArrayOutputStream out=new ByteArrayOutputStream();
        Thumbnails.of(new ByteArrayInputStream(image)).size(320,180).outputFormat("String_Node_Str").outputQuality(1.0f).toOutputStream(out);
        media.setThumb(out.toByteArray());
      }
    }
    media.finalize(type,file);
    media.setMediaparsed(true);
  }
 catch (  Exception e) {
    LOGGER.debug("String_Node_Str",e);
  }
}