Program: 33459
Project: 33459
Buggy source:
@Nullable protected ModelAndView doHandle(HttpServletRequest request,HttpServletResponse response) throws Exception {
  HashMap<String,Object> params=new HashMap<String,Object>();
  params.put("String_Node_Str",this.myPluginDescriptor.getPluginResourcesPath());
  if (request.getParameter("String_Node_Str") != null) {
    SProject project=this.myServer.getProjectManager().findProjectById(request.getParameter("String_Node_Str"));
    if (project == null) {
      params.put("String_Node_Str","String_Node_Str");
    }
 else {
      WebHookProjectSettings projSettings=(WebHookProjectSettings)mySettings.getSettings(request.getParameter("String_Node_Str"),"String_Node_Str");
      params.put("String_Node_Str",ProjectWebHooksBeanJsonSerialiser.serialise(ProjectWebHooksBean.build(projSettings,project,myManager.getRegisteredFormatsAsCollection())));
    }
  }
 else   if (request.getParameter("String_Node_Str") != null) {
    SBuildType sBuildType=TeamCityIdResolver.findBuildTypeById(this.myServer.getProjectManager(),request.getParameter("String_Node_Str"));
    if (sBuildType != null) {
      SProject project=sBuildType.getProject();
      if (project != null) {
        WebHookProjectSettings projSettings=(WebHookProjectSettings)mySettings.getSettings(project.getProjectId(),"String_Node_Str");
        params.put("String_Node_Str",ProjectWebHooksBeanJsonSerialiser.serialise(ProjectWebHooksBean.build(projSettings,sBuildType,project,myManager.getRegisteredFormatsAsCollection())));
      }
    }
  }
 else {
    params.put("String_Node_Str","String_Node_Str");
  }
  return new ModelAndView(myPluginDescriptor.getPluginResourcesPath() + "String_Node_Str",params);
}

Fixed version (ground truth):
@Nullable protected ModelAndView doHandle(HttpServletRequest request,HttpServletResponse response) throws Exception {
  HashMap<String,Object> params=new HashMap<String,Object>();
  params.put("String_Node_Str",this.myPluginDescriptor.getPluginResourcesPath());
  if (request.getParameter("String_Node_Str") != null && request.getParameter("String_Node_Str").startsWith("String_Node_Str")) {
    SProject project=this.myServer.getProjectManager().findProjectById(request.getParameter("String_Node_Str"));
    WebHookProjectSettings projSettings=(WebHookProjectSettings)mySettings.getSettings(request.getParameter("String_Node_Str"),"String_Node_Str");
    params.put("String_Node_Str",ProjectWebHooksBeanJsonSerialiser.serialise(ProjectWebHooksBean.build(projSettings,project,myManager.getRegisteredFormatsAsCollection())));
  }
 else   if (request.getParameter("String_Node_Str") != null) {
    SBuildType sBuildType=TeamCityIdResolver.findBuildTypeById(this.myServer.getProjectManager(),request.getParameter("String_Node_Str"));
    if (sBuildType != null) {
      SProject project=sBuildType.getProject();
      if (project != null) {
        WebHookProjectSettings projSettings=(WebHookProjectSettings)mySettings.getSettings(project.getProjectId(),"String_Node_Str");
        params.put("String_Node_Str",ProjectWebHooksBeanJsonSerialiser.serialise(ProjectWebHooksBean.build(projSettings,sBuildType,project,myManager.getRegisteredFormatsAsCollection())));
      }
    }
  }
 else {
    params.put("String_Node_Str","String_Node_Str");
  }
  return new ModelAndView(myPluginDescriptor.getPluginResourcesPath() + "String_Node_Str",params);
}