Buggy code:
int idx4 = ppt . addPicture ( generateGraph . createGraph ( rU . reportedQAAllWeeksGraphForIndividualProject ( rcaCount , allWeeks ) , "Weekly<seq2seq4repair_space>QA" , "" , "" , VERTICAL , true , 650 , 950 , BAR , false , true ) , PICTURE_TYPE_PNG ) ; int idx5 = 0 ; if ( sprintReport != null ) { idx5 = ppt . addPicture ( generateGraph . createWeeklyBarGraph ( rU . reportedSprintGraph ( sprintReport ) , ( ( ( ( ( ( rcaCount . get ( 0 ) . getProjectDetails ( ) . getProjectName ( ) ) + "(<seq2seq4repair_space>Dev:<seq2seq4repair_space>" ) + ( sprintReport . getDevMembers ( ) ) ) + ",<seq2seq4repair_space>QA:<seq2seq4repair_space>" ) + ( sprintReport . getQaMembers ( ) ) ) + ")" ) , "" , "" , VERTICAL , false , 450 , 450 , NORMAL_BAR , true , false ) , PICTURE_TYPE_PNG ) ; } TextBox txt1 = new TextBox ( ) ; txt1 . setText ( ( ( rcaCount . get ( 0 ) . getProjectDetails ( ) . getProjectName ( ) ) + "<seq2seq4repair_space>Dashboard" ) ) ; txt1 . setAnchor ( new Rectangle ( 0 , 0 , ( ( ( ppt . getPageSize ( ) . width ) // 2 ) // 2 ) , ( ( ( ppt . getPageSize ( ) . height ) // 2 ) // 10 ) ) ) ; slide . addShape ( txt1 ) ; TextBox txt2 = new TextBox ( ) ; TextRun tr = txt2 . createTextRun ( ) ; if ( ( rcaCount . size ( ) ) > 0 ) { RcaCount rcaList = null ; Iterator < RcaCount > itOM = rcaCount . iterator ( ) ; while ( itOM . hasNext ( ) ) { rcaList = itOM . next ( ) ; if ( rcaList . getWeek ( ) . equals ( rca . getWeek ( ) ) ) { txt2 . setText ( ( "Overview:<seq2seq4repair_space>" + "\n" ) ) ; if ( ( ( rcaList . getOverviewMessage ( ) ) != null ) && ( ! ( rcaList . getOverviewMessage ( ) . isEmpty ( ) ) ) ) tr . appendText ( ( ( rcaList . getOverviewMessage ( ) ) + "\n" ) ) ; else tr . appendText ( ( "N//A" + "\n" ) ) ; } } Iterator < RcaCount > itRI = rcaCount . iterator ( ) ; while ( itRI . hasNext ( ) ) { rcaList = itRI . next ( ) ; if ( rcaList . getWeek ( ) . equals ( rca . getWeek ( ) ) ) { tr . appendText ( ( "\n" + ( "Risks//Issues:<seq2seq4repair_space>" + "\n" ) ) ) ; if ( ( ( rcaList . getRisksIssues ( ) ) != null ) && ( ! ( rcaList . getRisksIssues ( ) . isEmpty ( ) ) ) ) tr . appendText ( ( ( rcaList . getRisksIssues ( ) ) + "\n" ) ) ; else tr . appendText ( ( "N//A" + "\n" ) ) ; } } } txt2 . setAnchor ( new Rectangle ( ( ( ( ppt . getPageSize ( ) . width ) // 2 ) + 20 ) , 20 , ( ( ( ppt . getPageSize ( ) . width ) // 2 ) - 50 ) , ( ( ( ppt . getPageSize ( ) . height ) // 2 ) - 50 ) ) ) ; slide . addShape ( txt2 ) ; Picture pict2 = new Picture ( idx1 ) ; pict2 . setAnchor ( new Rectangle ( 0 , ( pageheight + 160 ) , ( pageWidth - 5 ) , ( pageheight - 10 ) ) ) ; slide . addShape ( pict2 ) ; Picture pict3 = new Picture ( idx2 ) ; pict3 . setAnchor ( new Rectangle ( 180 , ( pageheight + 160 ) , ( pageWidth - 5 ) , ( pageheight - 10 ) ) ) ; slide . addShape ( pict3 ) ; Picture pict4 = new Picture ( idx3 ) ; pict4 . setAnchor ( new Rectangle ( 360 , ( pageheight + 160 ) , ( pageWidth - 5 ) , ( pageheight - 10 ) ) ) ; slide . addShape ( pict4 ) ; Picture pict5 = new Picture ( idx4 ) ; pict5 . setAnchor ( new Rectangle ( 540 , ( pageheight + 160 ) , ( pageWidth - 5 ) , ( pageheight - 10 ) ) ) ; slide . addShape ( pict5 ) ; if ( idx5 != 0 ) { Picture pict6 = new Picture ( idx5 ) ; <START_BUG> pict6 . setAnchor ( new Rectangle ( 20 , 70 , ( pageWidth + 160 ) , ( pageheight - 30 ) ) ) ; <END_BUG> slide . addShape ( pict6 ) ; } InputStream stream = getClass ( ) . getResourceAsStream ( "ColorCategory.jpg" ) ; byte [ ] picture = IOUtils . toByteArray ( stream ) ; int imgx = ppt . addPicture ( picture , PICTURE_TYPE_JPEG ) ; Picture pictImage = new Picture ( imgx ) ; pictImage . setAnchor ( new Rectangle ( 0 , ( pageheight + 335 ) , ( pageWidth * 4 ) , ( pageheight // 7 ) ) ) ; slide . addShape ( pictImage ) ; Log . debug ( "Exit<seq2seq4repair_space>createGraphIndividualPpt" ) ; } public Map getSession ( ) { } public void setSession ( Map session ) { } public InputStream getFileInputStream ( ) { } public void setFileInputStream ( InputStream fileInputStream ) { } public RcaManager getRcaManager ( ) { } public void setRcaManager ( RcaManager rcaManager ) { } public ProjectDetailsManager getProjectDetailsManager ( ) { } public void setProjectDetailsManager ( ProjectDetailsManager projectDetailsManager ) { } public RCA getRca ( ) { } public void setRca ( RCA rca ) { } public SprintReportManager getSprintReportManager ( ) { }

Fix:
pict6 . setAnchor ( new Rectangle ( 2 , 70 , ( pageWidth + 160 ) , ( pageheight - 30 ) ) ) ;