Buggy code:
public abstract class MSVSS extends Task implements MSVSSConstants { private String m_SSDir = null ; private String m_vssLogin = null ; private String m_vssPath = null ; private String m_serverPath = null ; private String m_Version = null ; private String m_Date = null ; private String m_Label = null ; private String m_AutoResponse = null ; private String m_LocalPath = null ; private String m_Comment = null ; private String m_FromLabel = null ; private String m_ToLabel = null ; private String m_OutputFileName = null ; private String m_User = null ; private String m_FromDate = null ; private String m_ToDate = null ; private String m_Style = null ; private boolean m_Quiet = false ; private boolean m_Recursive = false ; private boolean m_Writable = false ; private boolean m_FailOnError = true ; private boolean m_getLocalCopy = true ; private int m_NumDays = Integer . MIN_VALUE ; private DateFormat m_DateFormat = DateFormat . getDateInstance ( DateFormat . SHORT ) ; private MSVSS . CurrentModUpdated m_timestamp = null ; private MSVSS . WritableFiles m_writablefiles = null ; abstract Commandline buildCmdLine ( ) { } public final void setSsdir ( String dir ) { } public final void setLogin ( String login ) { } public final void setVsspath ( String vssPath ) { } public final void setServerpath ( String serverPath ) { } public final void setFailOnError ( boolean failOnError ) { } public void execute ( ) throws BuildException { } protected void setInternalComment ( String text ) { } protected void setInternalAutoResponse ( String text ) { } protected void setInternalDate ( String text ) { } protected void setInternalDateFormat ( DateFormat date ) { } protected void setInternalFailOnError ( boolean fail ) { } protected void setInternalFromDate ( String text ) { } protected void setInternalFromLabel ( String text ) { } protected void setInternalLabel ( String text ) { } protected void setInternalLocalPath ( String text ) { } protected void setInternalNumDays ( int days ) { } protected void setInternalOutputFilename ( String text ) { } protected void setInternalQuiet ( boolean quiet ) { } protected void setInternalRecursive ( boolean recursive ) { } protected void setInternalStyle ( String style ) { } protected void setInternalToDate ( String text ) { } protected void setInternalToLabel ( String text ) { } protected void setInternalUser ( String user ) { } protected void setInternalVersion ( String text ) { } protected void setInternalWritable ( boolean writable ) { } protected void setInternalFileTimeStamp ( MSVSS . CurrentModUpdated timestamp ) { } protected void setInternalWritableFiles ( MSVSS . WritableFiles files ) { } protected void setInternalGetLocalCopy ( boolean get ) { } protected String getSSCommand ( ) { } protected String getVsspath ( ) { } protected String getQuiet ( ) { } protected String getRecursive ( ) { } protected String getWritable ( ) { } protected String getLabel ( ) { } private String getShortLabel ( ) { } protected String getStyle ( ) { } protected String getVersionDateLabel ( ) { if ( ( m_Version ) != null ) { return ( FLAG_VERSION ) + ( m_Version ) ; } else if ( ( m_Date ) != null ) { return ( FLAG_VERSION_DATE ) + ( m_Date ) ; } else { String label = getShortLabel ( ) ; <START_BUG> if ( ( ! ( label . equals ( "" ) ) ) && ( label != null ) ) { <END_BUG> return ( FLAG_VERSION_LABEL ) + label ; } } return "" ; } protected String getVersion ( ) { } protected String getLocalpath ( ) { } protected String getComment ( ) { } protected String getAutoresponse ( ) { } protected String getLogin ( ) { } protected String getOutput ( ) { } protected String getUser ( ) { } protected String getVersionLabel ( ) { } protected String getVersionDate ( ) throws BuildException { } protected String getGetLocalCopy ( ) { } private boolean getFailOnError ( ) { } public String getFileTimeStamp ( ) { } public String getWritableFiles ( ) { } private int run ( Commandline cmd ) { } private String calcDate ( String fromDate , int numDays ) throws ParseException { } private String formatCommandLine ( Commandline cmd ) { } public static class CurrentModUpdated extends EnumeratedAttribute { public String [ ] getValues ( ) { } } public static class WritableFiles extends EnumeratedAttribute { public String [ ] getValues ( ) { } } }

Fix:
if ( ( label != null ) && ( ! ( label . equals ( "" ) ) ) ) {