Buggy code:
public class RNController extends HttpServlet { private static final long serialVersionUID = 7546372886300391908L ; private static final String ACCESS_TOKEN = "ACCESS_TOKEN" ; private static final String INSTANCE_URL = "INSTANCE_URL" ; private static String accessToken ; private static String instanceUrl ; private String minVer ; private String maxVer ; private String projectId ; private String projectName ; private static Logger log = Logger . getLogger ( "rnotes" ) ; @ Override protected void doGet ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } private void actionDisplayLog ( HttpServletRequest request , HttpServletResponse response ) throws IOException { } private void actionPing ( HttpServletRequest request , HttpServletResponse response ) { } private void actionCreateVersionsFile ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { String newMinVer = request . getParameter ( "minVer" ) ; String newMaxVer = request . getParameter ( "maxVer" ) ; String newProjectId = request . getParameter ( "projectId" ) ; String newProjectName = request . getParameter ( "projectName" ) ; this . minVer = ( newMinVer == null ) ? this . minVer : newMinVer ; this . maxVer = ( newMaxVer == null ) ? this . maxVer : newMaxVer ; this . projectId = ( newProjectId == null ) ? this . projectId : newProjectId ; this . projectName = ( newProjectName == null ) ? this . projectName : newProjectName ; if ( ( ( ( ( this . minVer ) != null ) && ( ( this . maxVer ) != null ) ) && ( ( this . projectId ) != null ) ) && ( ( this . projectName ) != null ) ) { RNController . log . info ( ( ( ( ( ( ( ( "minVer<seq2seq4repair_space>=><seq2seq4repair_space>" + ( this . minVer ) ) + "<seq2seq4repair_space>maxVer<seq2seq4repair_space>=><seq2seq4repair_space>" ) + ( this . maxVer ) ) + "<seq2seq4repair_space>projectId<seq2seq4repair_space>=><seq2seq4repair_space>" ) + ( this . projectId ) ) + "<seq2seq4repair_space>projectName<seq2seq4repair_space>=><seq2seq4repair_space>" ) + ( this . projectName ) ) ) ; SFConnector sfConnector = new SFConnector ( ) ; sfConnector . getAccessToSalesforce ( request , response ) ; RNController . accessToken = ( ( String ) ( request . getSession ( ) . getAttribute ( RNController . ACCESS_TOKEN ) ) ) ; RNController . instanceUrl = ( ( String ) ( request . getSession ( ) . getAttribute ( RNController . INSTANCE_URL ) ) ) ; RNController . log . info ( ( "accessToken<seq2seq4repair_space>=><seq2seq4repair_space>" + ( RNController . accessToken ) ) ) ; RNController . log . info ( ( "instanceUrl<seq2seq4repair_space>=><seq2seq4repair_space>" + ( RNController . instanceUrl ) ) ) ; boolean isError = false ; boolean showPage = true ; if ( ( RNController . accessToken ) == null ) { request . setAttribute ( "errorMsg" , "Fatal<seq2seq4repair_space>Error:<seq2seq4repair_space>unable<seq2seq4repair_space>to<seq2seq4repair_space>connect<seq2seq4repair_space>to<seq2seq4repair_space>Salesforce.<seq2seq4repair_space>Access<seq2seq4repair_space>token<seq2seq4repair_space>not<seq2seq4repair_space>available" ) ; isError = true ; return ; } if ( ! isError ) { SFQuery sfQuery = new SFQuery ( RNController . accessToken , RNController . instanceUrl ) ; File logo = sfQuery . getLogo ( this . projectId ) ; List < ReleaseNote > tickets = sfQuery . getTickets ( this . minVer , this . maxVer , this . projectId ) ; RNController . log . info ( ( "tickets.isEmpty()<seq2seq4repair_space>=><seq2seq4repair_space>" + ( tickets . isEmpty ( ) ) ) ) ; if ( tickets . isEmpty ( ) ) { <START_BUG> request . setAttribute ( "errorMsg" , "There<seq2seq4repair_space>are<seq2seq4repair_space>no<seq2seq4repair_space>any<seq2seq4repair_space>appropriate<seq2seq4repair_space>tickets" ) ; <END_BUG> isError = true ; } if ( ! isError ) { RTFConverter . convertToRTF ( tickets , logo , true ) ; Long time = ( ( Long ) ( request . getSession ( ) . getAttribute ( "docTime" ) ) ) ; Long docTime = ( time == null ) ? 0 : time ; if ( ( ( System . currentTimeMillis ( ) ) - docTime ) > 5000 ) { if ( GGLService . createGoogleDoc ( this . projectName ) ) { request . setAttribute ( "gglResult" , "Release<seq2seq4repair_space>Notes<seq2seq4repair_space>document<seq2seq4repair_space>was<seq2seq4repair_space>successfully<seq2seq4repair_space>created<seq2seq4repair_space>on<seq2seq4repair_space>Google<seq2seq4repair_space>Drive" ) ; } else { request . setAttribute ( "gglResult" , "Error<seq2seq4repair_space>during<seq2seq4repair_space>document<seq2seq4repair_space>creating.<seq2seq4repair_space>Please,<seq2seq4repair_space>check<seq2seq4repair_space>app<seq2seq4repair_space>logs<seq2seq4repair_space>for<seq2seq4repair_space>getting<seq2seq4repair_space>more<seq2seq4repair_space>info" ) ; } RTFConverter . convertToRTF ( tickets , logo , false ) ; if ( sfQuery . addAttachmentToProject ( this . projectId , this . projectName ) ) { request . setAttribute ( "attResult" , "Release<seq2seq4repair_space>Notes<seq2seq4repair_space>document<seq2seq4repair_space>was<seq2seq4repair_space>successfully<seq2seq4repair_space>added<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>Project's<seq2seq4repair_space>attachments" ) ; } else { request . setAttribute ( "attResult" , "Error<seq2seq4repair_space>during<seq2seq4repair_space>document<seq2seq4repair_space>creating.<seq2seq4repair_space>Please,<seq2seq4repair_space>check<seq2seq4repair_space>app<seq2seq4repair_space>logs<seq2seq4repair_space>for<seq2seq4repair_space>getting<seq2seq4repair_space>more<seq2seq4repair_space>info" ) ; } request . getSession ( ) . setAttribute ( "docTime" , System . currentTimeMillis ( ) ) ; } else { showPage = false ; } } } if ( showPage ) { request . getRequestDispatcher ( "//main.jsp" ) . forward ( request , response ) ; } } } }

Fix:
request . setAttribute ( "errorMsg" , "There<seq2seq4repair_space>are<seq2seq4repair_space>no<seq2seq4repair_space>any<seq2seq4repair_space>appropriate<seq2seq4repair_space>tickets.<seq2seq4repair_space>Release<seq2seq4repair_space>Notes<seq2seq4repair_space>were<seq2seq4repair_space>not<seq2seq4repair_space>able<seq2seq4repair_space>to<seq2seq4repair_space>generate." ) ;