Program: 94262
Project: 94262
Buggy source:
public void fileTransferRequest(final FileTransferRequest request){
  requestListener.handleFileTransferRequest(new IFileTransferRequestEvent(){
    boolean requestAccepted=false;
    IFileTransferInfo fileTransferInfo=new IFileTransferInfo(){
      Map props=new HashMap();
      File f=new File(request.getFileName());
      public String getDescription(){
        return request.getDescription();
      }
      public File getFile(){
        return f;
      }
      public Map getProperties(){
        return props;
      }
      public Object getAdapter(      Class adapter){
        if (adapter == null)         return null;
        if (adapter.isInstance(this))         return this;
        final IAdapterManager adapterManager=XmppPlugin.getDefault().getAdapterManager();
        return (adapterManager == null) ? null : adapterManager.loadAdapter(this,adapter.getName());
      }
      public long getFileSize(){
        return request.getFileSize();
      }
      public String getMimeType(){
        return request.getMimeType();
      }
      public String toString(){
        final StringBuffer buf=new StringBuffer("String_Node_Str");
        buf.append("String_Node_Str").append(f);
        buf.append("String_Node_Str").append(getFileSize());
        buf.append("String_Node_Str" + getDescription());
        buf.append("String_Node_Str").append(getMimeType()).append("String_Node_Str");
        return buf.toString();
      }
    }
;
    public IIncomingFileTransfer accept(    File localFileToSave) throws IncomingFileTransferException {
      try {
        final OutputStream outs=new FileOutputStream(localFileToSave);
        return accept(outs,new IFileTransferListener(){
          public void handleTransferEvent(          IFileTransferEvent event){
            if (event instanceof IIncomingFileTransferReceiveDoneEvent) {
              try {
                outs.close();
              }
 catch (              final IOException e) {
              }
            }
          }
        }
);
      }
 catch (      final FileNotFoundException e) {
        throw new IncomingFileTransferException("String_Node_Str",e);
      }
    }
    public IFileTransferInfo getFileTransferInfo(){
      return fileTransferInfo;
    }
    public ID getRequesterID(){
      return createIDFromName(request.getRequestor());
    }
    public void reject(){
      request.reject();
    }
    public boolean requestAccepted(){
      return requestAccepted;
    }
    public String toString(){
      final StringBuffer buf=new StringBuffer("String_Node_Str");
      buf.append("String_Node_Str").append(getRequesterID());
      buf.append("String_Node_Str").append(requestAccepted());
      buf.append("String_Node_Str").append(getFileTransferInfo()).append("String_Node_Str");
      return buf.toString();
    }
    public IIncomingFileTransfer accept(    OutputStream outputStream,    IFileTransferListener listener) throws IncomingFileTransferException {
      if (requestAccepted)       throw new IncomingFileTransferException("String_Node_Str");
      if (outputStream == null)       throw new IncomingFileTransferException("String_Node_Str");
      incoming=request.accept();
      try {
        return new XMPPIncomingFileTransfer(IDFactory.getDefault().createStringID(request.getStreamID()),request.getFileName(),incoming.recieveFile(),outputStream,request.getFileSize(),listener);
      }
 catch (      final Exception e) {
        throw new IncomingFileTransferException("String_Node_Str",e);
      }
    }
  }
);
}

Fixed version (ground truth):
public void fileTransferRequest(final FileTransferRequest request){
  requestListener.handleFileTransferRequest(new IFileTransferRequestEvent(){
    boolean requestAccepted=false;
    IFileTransferInfo fileTransferInfo=new IFileTransferInfo(){
      Map props=new HashMap();
      File f=new File(request.getFileName());
      public String getDescription(){
        return request.getDescription();
      }
      public File getFile(){
        return f;
      }
      public Map getProperties(){
        return props;
      }
      public Object getAdapter(      Class adapter){
        if (adapter == null)         return null;
        if (adapter.isInstance(this))         return this;
        final IAdapterManager adapterManager=XmppPlugin.getDefault().getAdapterManager();
        return (adapterManager == null) ? null : adapterManager.loadAdapter(this,adapter.getName());
      }
      public long getFileSize(){
        return request.getFileSize();
      }
      public String getMimeType(){
        return request.getMimeType();
      }
      public String toString(){
        final StringBuffer buf=new StringBuffer("String_Node_Str");
        buf.append("String_Node_Str").append(f);
        buf.append("String_Node_Str").append(getFileSize());
        buf.append("String_Node_Str" + getDescription());
        buf.append("String_Node_Str").append(getMimeType()).append("String_Node_Str");
        return buf.toString();
      }
    }
;
    public IIncomingFileTransfer accept(    File localFileToSave) throws IncomingFileTransferException {
      try {
        final OutputStream outs=new FileOutputStream(localFileToSave);
        return accept(outs,new IFileTransferListener(){
          public void handleTransferEvent(          IFileTransferEvent event){
            if (event instanceof IIncomingFileTransferReceiveDoneEvent) {
              try {
                outs.close();
              }
 catch (              final IOException e) {
              }
            }
          }
        }
);
      }
 catch (      final FileNotFoundException e) {
        throw new IncomingFileTransferException("String_Node_Str",e);
      }
    }
    public IFileTransferInfo getFileTransferInfo(){
      return fileTransferInfo;
    }
    public ID getRequesterID(){
      return createIDFromName(request.getRequestor());
    }
    public void reject(){
      request.reject();
    }
    public boolean requestAccepted(){
      return requestAccepted;
    }
    public String toString(){
      final StringBuffer buf=new StringBuffer("String_Node_Str");
      buf.append("String_Node_Str").append(getRequesterID());
      buf.append("String_Node_Str").append(requestAccepted());
      buf.append("String_Node_Str").append(getFileTransferInfo()).append("String_Node_Str");
      return buf.toString();
    }
    public IIncomingFileTransfer accept(    OutputStream outputStream,    IFileTransferListener listener) throws IncomingFileTransferException {
      if (requestAccepted)       throw new IncomingFileTransferException("String_Node_Str");
      if (outputStream == null)       throw new IncomingFileTransferException("String_Node_Str");
      incoming=request.accept();
      requestAccepted=true;
      try {
        return new XMPPIncomingFileTransfer(IDFactory.getDefault().createStringID(request.getStreamID()),request.getFileName(),incoming.recieveFile(),outputStream,request.getFileSize(),listener);
      }
 catch (      final Exception e) {
        throw new IncomingFileTransferException("String_Node_Str",e);
      }
    }
  }
);
}