Buggy code:
public final class OldSaveService implements SaveServiceConstants { private static final transient Logger log = LoggingManager . getLoggerForClass ( ) ; private static final SampleSaveConfiguration _saveConfig = SampleSaveConfiguration . staticConfig ( ) ; private static DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder ( ) ; private OldSaveService ( ) { } public static SampleResult makeResultFromDelimitedString ( String delim ) { } public static String printableFieldNamesToString ( ) { } public static void saveSubTree ( HashTree subTree , OutputStream writer ) throws IOException { } public static SampleResult getSampleResult ( Configuration config ) { } private static List getConfigsFromTree ( HashTree subTree ) { } public static Configuration getConfiguration ( byte [ ] bin ) { } public static byte [ ] getBinaryData ( Configuration config ) { } public static AssertionResult getAssertionResult ( Configuration config ) { } public static Configuration getConfiguration ( AssertionResult assResult ) { } public static Configuration getConfiguration ( SampleResult result , SampleSaveConfiguration saveConfig ) { DefaultConfiguration config = new DefaultConfiguration ( SAMPLE_RESULT_TAG_NAME , "JMeter<seq2seq4repair_space>Save<seq2seq4repair_space>Service" ) ; if ( saveConfig . saveTime ( ) ) { config . setAttribute ( TIME , ( "" + ( result . getTime ( ) ) ) ) ; } if ( saveConfig . saveLabel ( ) ) { config . setAttribute ( LABEL , result . getSampleLabel ( ) ) ; } if ( saveConfig . saveCode ( ) ) { config . setAttribute ( RESPONSE_CODE , result . getResponseCode ( ) ) ; } if ( saveConfig . saveMessage ( ) ) { config . setAttribute ( RESPONSE_MESSAGE , result . getResponseMessage ( ) ) ; } if ( saveConfig . saveThreadName ( ) ) { config . setAttribute ( THREAD_NAME , result . getThreadName ( ) ) ; } if ( saveConfig . saveDataType ( ) ) { config . setAttribute ( DATA_TYPE , result . getDataType ( ) ) ; } if ( saveConfig . printMilliseconds ( ) ) { config . setAttribute ( TIME_STAMP , ( "" + ( result . getTimeStamp ( ) ) ) ) ; } else if ( ( saveConfig . formatter ( ) ) != null ) { String stamp = saveConfig . formatter ( ) . format ( new Date ( result . getTimeStamp ( ) ) ) ; config . setAttribute ( TIME_STAMP , stamp ) ; } if ( saveConfig . saveSuccess ( ) ) { config . setAttribute ( SUCCESSFUL , JOrphanUtils . booleanToString ( result . isSuccessful ( ) ) ) ; } SampleResult [ ] subResults = result . getSubResults ( ) ; if ( subResults != null ) { for ( int i = 0 ; i < ( subResults . length ) ; i ++ ) { config . addChild ( OldSaveService . getConfiguration ( subResults [ i ] , saveConfig ) ) ; } } AssertionResult [ ] assResults = result . getAssertionResults ( ) ; if ( saveConfig . saveSamplerData ( ) ) { config . addChild ( OldSaveService . createConfigForString ( "samplerData" , result . getSamplerData ( ) ) ) ; } if ( ( saveConfig . saveAssertions ( ) ) && ( assResults != null ) ) { for ( int i = 0 ; i < ( assResults . length ) ; i ++ ) { config . addChild ( OldSaveService . getConfiguration ( assResults [ i ] ) ) ; } } <START_BUG> if ( saveConfig . saveResponseData ( ) ) { <END_BUG> config . addChild ( OldSaveService . getConfiguration ( result . getResponseData ( ) ) ) ; } return config ; } public static String resultToDelimitedString ( SampleResult sample ) { } public static String resultToDelimitedString ( SampleResult sample , String delimiter ) { } public static Configuration getConfigForTestElement ( String named , TestElement item ) { } private static Configuration createConfigForString ( String name , String value ) { } public static synchronized HashTree loadSubTree ( InputStream in ) throws IOException { } public static TestElement createTestElement ( Configuration config ) throws ClassNotFoundException , IllegalAccessException , InstantiationException , ConfigurationException { } private static Collection createCollection ( Configuration config , String testClass ) throws ClassNotFoundException , IllegalAccessException , InstantiationException , ConfigurationException { } private static JMeterProperty createProperty ( Configuration config , String testClass ) throws ClassNotFoundException , IllegalAccessException , InstantiationException { } private static Map createMap ( Configuration config , String testClass ) throws ClassNotFoundException , IllegalAccessException , InstantiationException , ConfigurationException { } private static HashTree generateNode ( Configuration config ) { } }

Fix:
if ( saveConfig . saveResponseData ( result ) ) {