Buggy code:
@ ManagedBean ( name = "systematizationActivityBean2" ) @ ViewScoped public class SystematizationActivityBean2 implements Serializable { private final String [ ] colorRef = new String [ ] { "black" , "red" , "lime<seq2seq4repair_space>" , "blue" , "purple" , "deeppink" , "goldenrod" } ; private final String [ ] colorCoRef = new String [ ] { "black" , "orange" , "greenyellow" , "SkyBlue" , "orchid" , "hotpink" , "gold" } ; private final String R3 = "r3" ; private final String R2 = "r2" ; private final String R1 = "r1" ; private ActivityVo activity ; private Integer idSequence ; private DocumentTexte text ; private Referent referent1 ; private Referent referent2 ; private List < Coreferent > coreferent1 ; private List < Coreferent > coreferent2 ; private List < Coreferent > coreferent3 ; private Set < String > coreferentColors ; private String lastColor = "black" ; private int rightAnswers ; public void preRenderView ( ) throws Exception { } private void initElements ( ) { } public List < ElementXML > getTitleElems ( ) { List < ElementXML > elems = new ArrayList < ElementXML > ( ) ; <START_BUG> if ( ( text ) != null ) { <END_BUG> List < Phrase > phrases = text . getContenu ( ) . getTitre ( ) . getPhrase ( ) ; for ( Phrase phrase : phrases ) { addPhraseElems ( phrase , elems ) ; } } return elems ; } private void addPhraseElems ( Phrase phrase , List < ElementXML > elems ) { } private List < ElementXML > getPropElems ( ElementXML prop ) { } public List < ElementXML > getSubtitleElems ( ElementXML subtitle ) { } public List < ElementXML > getParagraphElems ( ElementXML paragraph ) { } public String getElementsFromReferent ( ElementXML element ) { } public String getRefColor ( String idn ) { } public String getCoRefColor ( String ref , String idn ) { } public List < Coreferent > getCoreferentsByIdn ( String idn ) { } public boolean isRightCoreferent ( String chaine ) { } public static String encodeAsURI ( String s ) { } public ActivityVo getActivity ( ) { } public void setActivity ( ActivityVo activity ) { } public Integer getIdSequence ( ) { } public void setIdSequence ( Integer idSequence ) { } public DocumentTexte getText ( ) { } public void setText ( DocumentTexte text ) { } public Referent getReferent1 ( ) { } public void setReferent1 ( Referent referent1 ) { } public Referent getReferent2 ( ) { } public void setReferent2 ( Referent referent2 ) { } public List < Coreferent > getCoreferent1 ( ) { } public void setCoreferent1 ( List < Coreferent > coreferent1 ) { } public List < Coreferent > getCoreferent2 ( ) { } public void setCoreferent2 ( List < Coreferent > coreferent2 ) { } public List < Coreferent > getCoreferent3 ( ) { } public void setCoreferent3 ( List < Coreferent > coreferent3 ) { } public Set < String > getCoreferentColors ( ) { } public void setCoreferentColors ( Set < String > coreferentColors ) { } public String getLastColor ( ) { } public void setLastColor ( String lastColor ) { } public String getR3 ( ) { } public String getR2 ( ) { } public String getR1 ( ) { } public int getRightAnswers ( ) { } public String lastColor ( ) { } public String encodeString ( String s ) { } public List randomizeCollection ( List l ) { } }

Fix:
if ( ( ( text ) != null ) && ( ( text . getContenu ( ) . getTitre ( ) ) != null ) ) {