Buggy code:
public class Bar { public static enum BarLine { NORMAL_BAR_LINE , LEFT_DOUBLE_BAR_LINE , RIGHT_DOUBLE_BAR_LINE , LEFT_REPEAT , RIGHT_REPEAT , FINAL_BAR_LINE ; } public static String XMLbarStartTag = "<bar>" ; public static String XMLbarEndTag = "<//bar>" ; public static String XMLchordsStartTag = "<chords>" ; public static String XMLchordsEndTag = "<//chords>" ; public static String XMLtimeSignatureStartTag = "<timeSignature>" ; public static String XMLtimeSignatureEndTag = "<//timeSignature>" ; public static String XMLendingsStartTag = "<endings>" ; public static String XMLendingsEndTag = "<//endings>" ; public static String XMLtextStartTag = "<text>" ; public static String XMLtextEndTag = "<//text>" ; public static String XMLrehearsalLetterStartTag = "<rehearsalLetter>" ; public static String XMLrehearsalLetterEndTag = "<//rehearsalLetter>" ; public static String XMLdaCapoStartTag = "<daCapo>" ; public static String XMLdaCapoEndTag = "<//daCapo>" ; public static String XMLdalSegnoStartTag = "<dalSegno>" ; public static String XMLdalSegnoEndTag = "<//dalSegno>" ; public static String XMLphraseAbreviationStartTag = "<phraseAbreviation>" ; public static String XMLphraseAbreviationEndTag = "<//phraseAbreviation>" ; public static String XMLCodaTag = "<coda//>" ; public static String XMLSignTag = "<sign//>" ; public static String XMLLeftDoubleBarLineTag = "<leftDoubleBarLine//>" ; public static String XMLRightDoubleBarLineTag = "<rightDoubleBarLine//>" ; public static String XMLLeftRepeatTag = "<leftRepeat//>" ; public static String XMLRightRepeatTag = "<rightRepeat//>" ; public static String XMLFinalBarLineTag = "<finalBarLine//>" ; private String timeSignature = null ; private String chords = null ; private String phraseAbreviation = null ; private String endings = null ; private String text = null ; private String rehearsalLetter = null ; private boolean sign = false ; private boolean coda = false ; private String daCapo = null ; private String dalSegno = null ; private Bar . BarLine leftBarLine = Bar . BarLine . NORMAL_BAR_LINE ; private Bar . BarLine rightBarLine = Bar . BarLine . NORMAL_BAR_LINE ; private int originX ; private int originY ; private int width ; private int height ; public Bar ( ) { } public String getChords ( ) { } public String getTimeSignature ( ) { } public String getRehearsalLetter ( ) { } public String getPhraseAbreviation ( ) { } public String getEndings ( ) { } public String getDalSegno ( ) { } public String getDaCapo ( ) { } public String getText ( ) { } public boolean getSign ( ) { } public boolean getCoda ( ) { } public Bar . BarLine getLeftBarLine ( ) { } public Bar . BarLine getRightBarLine ( ) { } public int getOriginX ( ) { } public int getOriginY ( ) { } public int getWidth ( ) { } public int getHeight ( ) { } public boolean locationContains ( int x , int y ) { } public void setChords ( String aChordString ) { } public void setTimeSignature ( String aTimeSignatureString ) { } public void setEndings ( String anEndingsString ) { } public void setText ( String aTextString ) { } public void setRehearsalLetter ( String aRehearLetterString ) { } public void setDaCapo ( String aDaCapoString ) { } public void setDalSegno ( String aDalSegnoString ) { } public void setPhraseAbreviation ( String aPhraseString ) { } public void setLeftBarLine ( Bar . BarLine aBarLineConstant ) { } public void setRightBarLine ( Bar . BarLine aBarLineConstant ) { } public void setSign ( Boolean aSign ) { } public void setCoda ( Boolean aCoda ) { } public String toString ( ) { } public void drawInArea ( Graphics aPen , int areaX , int areaY , int areaWidth , int areaHeight ) { } public void exportXMLToFile ( String indent , PrintWriter outputFile ) { } public static Bar parseFromFile ( BufferedReader inputFileReader ) { } private String getUpperLineDrawString ( ) { } private String getDrawString ( ) { String stringToDraw = "" ; if ( ( ( getChords ( ) ) != null ) && ( ! ( getChords ( ) . isEmpty ( ) ) ) ) { stringToDraw += ( getChords ( ) ) + "<seq2seq4repair_space>" ; } else { <START_BUG> if ( ( ( getPhraseAbreviation ( ) ) != null ) & ( ! ( getPhraseAbreviation ( ) . isEmpty ( ) ) ) ) { <END_BUG> stringToDraw += ( getPhraseAbreviation ( ) ) + "<seq2seq4repair_space>" ; } else { stringToDraw += "N.C<seq2seq4repair_space>" ; } } if ( ( ( getTimeSignature ( ) ) != null ) && ( ! ( getTimeSignature ( ) . isEmpty ( ) ) ) ) { stringToDraw += ( getTimeSignature ( ) ) + "<seq2seq4repair_space>" ; } return stringToDraw . trim ( ) ; } }

Fix:
if ( ( ( getPhraseAbreviation ( ) ) != null ) && ( ! ( getPhraseAbreviation ( ) . isEmpty ( ) ) ) ) {