Buggy code:
@ ManagedBean ( name = "spottingActivityBean3" ) @ ViewScoped public class SpottingActivityBean3 implements Serializable { private ActivityVo activity ; private Integer idSequence ; private DocumentTexte text ; private boolean supports ; 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 Referent referent1 ; private Referent referent2 ; private Referent referent3 ; private List < Coreferent > coreferent1 ; private List < Coreferent > coreferent2 ; private List < Coreferent > coreferent3 ; private int r1GN ; private int r1Pron ; private int r2GN ; private int r2Pron ; private int r3GN ; private int r3Pron ; private final String R3 = "r3" ; private final String R2 = "r2" ; private final String R1 = "r1" ; private final String GN = "GN" ; private final String PRON = "Pron" ; 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 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 > getCoreferent3 ( ) { } public void setCoreferent3 ( List < Coreferent > coreferent3 ) { } public String getR3 ( ) { } public String getR2 ( ) { } public String getR1 ( ) { } public Referent getReferent3 ( ) { } public void setReferent3 ( Referent referent3 ) { } public List < Coreferent > getCoreferent2 ( ) { } public void setCoreferent2 ( List < Coreferent > coreferent2 ) { } public int getR1GN ( ) { } public int getR1Pron ( ) { } public int getR2GN ( ) { } public int getR2Pron ( ) { } public int getR3GN ( ) { } public int getR3Pron ( ) { } public boolean isSupports ( ) { } public void setSupports ( boolean supports ) { } }

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